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

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

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.x: B = None
        self.v: D = None
        self.txt = txt

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.x: B = None
        self.v: D = None
        self.txt = txt

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

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

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

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

a.o = n
a.r = j
a.q = j
a.u = c
a.x = d
c.v = d
c.z = n
c.p = k
c.o = k
c.t = e
c.u = g
g.p = m
g.x = l
g.v = k
d.u = e
d.y = a
d.v = g
d.w = m
d.r = m
n.o = a
n.p = m
n.r = e
n.u = k
m.z = e
l.v = k
l.p = k
l.z = n
l.t = e
l.o = d
l.u = j
j.p = m
j.x = c
j.v = k
e.o = a
e.p = m
e.r = n
e.u = d
k.u = n
k.y = a
k.v = j
k.w = m
k.r = m
assert m.z.u.v.x.p.v.x.t.txt == "e"