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

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

class C:
    def __init__(self, txt: str):
        self.w: G = None
        self.y: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.y: B = None
        self.s: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.t: A = None
        self.x: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: E = None
        self.u: G = None
        self.p: C = None
        self.q: D = None
        self.w: C = None
        self.y: C = None
        self.o: C = None
        self.r: C = None
        self.txt = txt

l = A("l")
e = B("e")
k = C("k")
b = D("b")
n = E("n")
m = F("m")
c = G("c")
g = H("g")
j = A("j")
i = A("i")

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

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

class C:
    def __init__(self, txt: str):
        self.w: G = None
        self.y: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.y: B = None
        self.s: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.t: A = None
        self.x: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: E = None
        self.u: G = None
        self.p: C = None
        self.q: D = None
        self.w: C = None
        self.y: C = None
        self.o: C = None
        self.r: C = None
        self.txt = txt

l = A("l")
e = B("e")
k = C("k")
b = D("b")
n = E("n")
m = F("m")
c = G("c")
g = H("g")
j = A("j")
i = A("i")

l.u = n
l.r = k
l.y = b
l.q = b
l.z = j
l.t = m
l.w = e
l.o = e
e.z = n
k.w = c
k.y = b
b.u = e
b.y = e
b.s = g
n.o = m
n.p = m
n.z = b
m.y = g
m.t = i
m.x = e
c.r = e
g.s = n
g.u = c
g.p = k
g.w = k
g.y = k
g.o = k
g.r = k
g.q = b
j.u = n
j.r = k
j.y = b
j.q = b
j.z = l
j.t = m
j.w = e
j.o = e
i.u = n
i.r = k
i.y = b
i.q = b
i.z = j
i.t = m
i.w = e
i.o = e
assert m.t.t.y.q.s.q.s.q.txt == "b"