class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.o: E = None
        self.w: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.s: E = None
        self.q: B = None
        self.w: E = None
        self.u: B = None
        self.p: E = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.u: B = None
        self.txt = txt

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

m.t = j
m.o = a
m.w = b
j.o = l
i.y = c
i.t = c
i.x = j
i.z = e
i.o = d
e.r = i
e.q = d
e.y = m
e.p = c
e.o = j
b.r = m
b.s = a
b.w = a
b.p = a
b.q = j
b.u = j
c.x = i
c.u = j
l.y = c
l.t = c
l.x = j
l.z = e
l.o = i
g.t = j
g.o = a
g.w = a
d.y = c
d.t = c
d.x = j
d.z = e
d.o = l
a.r = m
a.s = b
a.w = b
a.p = b
a.q = j
a.u = j
assert j.o.y.x.x.o.t.x.o.x.txt == "
class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.o: E = None
        self.w: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.s: E = None
        self.q: B = None
        self.w: E = None
        self.u: B = None
        self.p: E = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.u: B = None
        self.txt = txt

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

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