class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.z: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.u: E = None
        self.q: F = None
        self.r: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.s: E = None
        self.p: E = None
        self.w: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.t: A = None
        self.u: F = None
        self.o: F = None
        self.x: A = None
        self.z: C = None
        self.txt = txt

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

i = A("i")
m = B("m")
a = C("a")
g = D("g")
k = E("k")
l = F("l")
b = B("b")
h = F("h")

i.t = b
i.z = g
m.o = k
m.u = k
m.q = h
m.r = a
a.v = m
a.s = i
a.u = h
a.t = g
g.z = a
g.s = k
g.p = k
g.w = i
k.s = h
k.u = h
k.t = i
k.x = i
k.o = l
k.z = a
l.t = g
l.x = h
l.q = i
b.o = k
b.u = k
b.q = h
b.r = a
h.t = g
h.x = l
h.q = i
assert h.t.s.z.t.p.txt == "
class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.z: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.u: E = None
        self.q: F = None
        self.r: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.s: E = None
        self.p: E = None
        self.w: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.t: A = None
        self.u: F = None
        self.o: F = None
        self.x: A = None
        self.z: C = None
        self.txt = txt

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

i = A("i")
m = B("m")
a = C("a")
g = D("g")
k = E("k")
l = F("l")
b = B("b")
h = F("h")

i.t = b
i.z = g
m.o = k
m.u = k
m.q = h
m.r = a
a.v = m
a.s = i
a.u = h
a.t = g
g.z = a
g.s = k
g.p = k
g.w = i
k.s = h
k.u = h
k.t = i
k.x = i
k.o = l
k.z = a
l.t = g
l.x = h
l.q = i
b.o = k
b.u = k
b.q = h
b.r = a
h.t = g
h.x = l
h.q = i
assert h.t.s.z.t.p.txt == "k"