class A:
    def __init__(self, txt: str):
        self.x: B = None
        self.z: E = None
        self.r: C = None
        self.t: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.v: B = None
        self.p: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.z: A = None
        self.q: D = None
        self.p: F = None
        self.t: B = None
        self.v: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.o: A = None
        self.v: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.v: B = None
        self.p: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.z: A = None
        self.q: D = None
        self.p: F = None
        self.t: B = None
        self.v: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.o: A = None
        self.v: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

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

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