class A:
    def __init__(self, txt: str):
        self.t: C = None
        self.p: C = None
        self.y: C = None
        self.z: D = None
        self.r: D = None
        self.o: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: F = None
        self.w: A = None
        self.z: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.t: B = None
        self.w: D = None
        self.s: F = None
        self.o: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.q: C = None
        self.t: F = None
        self.x: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.x: A = None
        self.s: A = None
        self.txt = txt

c = A("c")
a = B("a")
j = C("j")
n = D("n")
g = E("g")
h = F("h")
b = C("b")
d = E("d")
i = F("i")
l = E("l")

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

class B:
    def __init__(self, txt: str):
        self.p: F = None
        self.w: A = None
        self.z: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: F = None
        self.t: B = None
        self.w: D = None
        self.s: F = None
        self.o: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.q: C = None
        self.t: F = None
        self.x: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.x: A = None
        self.s: A = None
        self.txt = txt

c = A("c")
a = B("a")
j = C("j")
n = D("n")
g = E("g")
h = F("h")
b = C("b")
d = E("d")
i = F("i")
l = E("l")

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