class A:
    def __init__(self, txt: str):
        self.p: H = None
        self.x: C = None
        self.v: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: F = None
        self.u: A = None
        self.y: F = None
        self.q: D = None
        self.x: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: H = None
        self.y: F = None
        self.z: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: F = None
        self.y: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.y: F = None
        self.r: D = None
        self.w: D = None
        self.v: B = None
        self.q: D = None
        self.u: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.o: C = None
        self.u: C = None
        self.q: G = None
        self.z: B = None
        self.p: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: F = None
        self.v: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: A = None
        self.t: G = None
        self.q: A = None
        self.o: B = None
        self.u: D = None
        self.x: B = None
        self.y: A = None
        self.txt = txt

j = A("j")
d = B("d")
n = C("n")
k = D("k")
h = E("h")
i = F("i")
l = G("l")
b = H("b")
g = E("g")

j.p = b
j.x = n
j.v = g
d.r = i
d.y = i
d.u = j
d.q = k
d.x = b
n.o = b
n.y = i
n.z = k
k.z = i
k.y = n
h.o = k
h.r = k
h.w = k
h.q = k
h.y = i
h.v = d
h.u = n
i.s = h
i.o = n
i.u = n
i.q = l
i.z = d
i.p = b
l.z = i
l.v = d
b.v = j
b.q = j
b.y = j
b.t = l
b.o = d
b.x = d
b.u = k
g.o = k
g.r = k
g.w = k
g.q = k
g.y = i
g.v = d
g.u = n
assert n.o.q.x.txt == "
class A:
    def __init__(self, txt: str):
        self.p: H = None
        self.x: C = None
        self.v: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: F = None
        self.u: A = None
        self.y: F = None
        self.q: D = None
        self.x: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: H = None
        self.y: F = None
        self.z: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: F = None
        self.y: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.y: F = None
        self.r: D = None
        self.w: D = None
        self.v: B = None
        self.q: D = None
        self.u: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.o: C = None
        self.u: C = None
        self.q: G = None
        self.z: B = None
        self.p: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: F = None
        self.v: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: A = None
        self.t: G = None
        self.q: A = None
        self.o: B = None
        self.u: D = None
        self.x: B = None
        self.y: A = None
        self.txt = txt

j = A("j")
d = B("d")
n = C("n")
k = D("k")
h = E("h")
i = F("i")
l = G("l")
b = H("b")
g = E("g")

j.p = b
j.x = n
j.v = g
d.r = i
d.y = i
d.u = j
d.q = k
d.x = b
n.o = b
n.y = i
n.z = k
k.z = i
k.y = n
h.o = k
h.r = k
h.w = k
h.q = k
h.y = i
h.v = d
h.u = n
i.s = h
i.o = n
i.u = n
i.q = l
i.z = d
i.p = b
l.z = i
l.v = d
b.v = j
b.q = j
b.y = j
b.t = l
b.o = d
b.x = d
b.u = k
g.o = k
g.r = k
g.w = k
g.q = k
g.y = i
g.v = d
g.u = n
assert n.o.q.x.txt == "n"