class A:
    def __init__(self, txt: str):
        self.z: E = None
        self.p: D = None
        self.w: B = None
        self.q: F = None
        self.y: E = None
        self.o: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: C = None
        self.w: A = None
        self.r: D = None
        self.v: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: D = None
        self.u: A = None
        self.r: D = None
        self.w: F = None
        self.p: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.p: C = None
        self.q: F = None
        self.u: A = None
        self.t: F = None
        self.txt = txt

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

b = A("b")
e = B("e")
k = C("k")
j = D("j")
i = E("i")
n = F("n")
f = A("f")
h = E("h")

b.z = h
b.y = h
b.p = j
b.w = e
b.q = n
b.o = k
e.x = k
e.w = b
e.r = j
e.v = i
k.q = j
k.r = j
k.u = f
k.w = n
k.p = n
j.u = h
j.r = k
j.v = e
i.y = k
i.p = k
i.q = n
i.t = n
i.u = f
n.y = k
n.o = j
f.z = h
f.p = j
f.w = e
f.q = n
f.y = i
f.o = k
h.y = k
h.p = k
h.q = n
h.t = n
h.u = f
assert e.x.u.z.txt == "
class A:
    def __init__(self, txt: str):
        self.z: E = None
        self.p: D = None
        self.w: B = None
        self.q: F = None
        self.y: E = None
        self.o: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: C = None
        self.w: A = None
        self.r: D = None
        self.v: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: D = None
        self.u: A = None
        self.r: D = None
        self.w: F = None
        self.p: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.p: C = None
        self.q: F = None
        self.u: A = None
        self.t: F = None
        self.txt = txt

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

b = A("b")
e = B("e")
k = C("k")
j = D("j")
i = E("i")
n = F("n")
f = A("f")
h = E("h")

b.z = h
b.y = h
b.p = j
b.w = e
b.q = n
b.o = k
e.x = k
e.w = b
e.r = j
e.v = i
k.q = j
k.r = j
k.u = f
k.w = n
k.p = n
j.u = h
j.r = k
j.v = e
i.y = k
i.p = k
i.q = n
i.t = n
i.u = f
n.y = k
n.o = j
f.z = h
f.p = j
f.w = e
f.q = n
f.y = i
f.o = k
h.y = k
h.p = k
h.q = n
h.t = n
h.u = f
assert e.x.u.z.txt == "h"