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

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

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.q: B = None
        self.x: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.r: B = None
        self.s: A = None
        self.t: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.x: C = None
        self.y: A = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.q: B = None
        self.x: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.r: B = None
        self.s: A = None
        self.t: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: F = None
        self.x: C = None
        self.y: A = None
        self.txt = txt

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

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

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