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

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.y: D = None
        self.o: F = None
        self.w: E = None
        self.q: C = None
        self.z: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.y: D = None
        self.o: F = None
        self.w: E = None
        self.q: C = None
        self.z: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.txt = txt

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

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

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

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