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

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

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.u: F = None
        self.p: C = None
        self.v: A = None
        self.x: F = None
        self.t: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: C = None
        self.u: B = None
        self.t: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.s: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: B = None
        self.o: B = None
        self.v: A = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.u: F = None
        self.p: C = None
        self.v: A = None
        self.x: F = None
        self.t: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: C = None
        self.u: B = None
        self.t: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: F = None
        self.s: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: B = None
        self.o: B = None
        self.v: A = None
        self.txt = txt

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

m.o = h
m.s = h
m.p = k
m.t = g
m.z = i
g.s = k
g.o = k
g.p = l
g.r = a
g.u = a
d.y = j
d.u = i
d.x = i
d.p = e
d.v = m
d.t = h
h.o = e
h.u = a
h.t = l
j.v = i
j.s = h
i.w = a
i.o = a
i.v = k
e.y = l
e.u = i
e.x = i
e.p = d
e.v = m
e.t = h
a.s = m
a.o = m
a.p = j
a.r = g
a.u = g
l.v = i
l.s = h
k.o = h
k.s = h
k.p = m
k.t = a
k.z = i
assert a.p.s.t.s.o.t.u.u.p.s.txt == "h"