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

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

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

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.y: D = None
        self.x: C = None
        self.z: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.u: F = None
        self.w: D = None
        self.y: B = None
        self.q: F = None
        self.txt = txt

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

i = A("i")
f = B("f")
e = C("e")
h = D("h")
k = E("k")
a = F("a")
m = D("m")
c = C("c")
j = C("j")

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.y: D = None
        self.x: C = None
        self.z: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.u: F = None
        self.w: D = None
        self.y: B = None
        self.q: F = None
        self.txt = txt

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

i = A("i")
f = B("f")
e = C("e")
h = D("h")
k = E("k")
a = F("a")
m = D("m")
c = C("c")
j = C("j")

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