class A:
    def __init__(self, txt: str):
        self.t: D = None
        self.o: B = None
        self.p: B = None
        self.x: E = None
        self.w: E = None
        self.r: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.q: D = None
        self.t: C = None
        self.x: D = None
        self.s: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.s: A = None
        self.w: A = None
        self.x: B = None
        self.o: F = None
        self.v: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.q: D = None
        self.t: C = None
        self.x: D = None
        self.s: D = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.s: A = None
        self.w: A = None
        self.x: B = None
        self.o: F = None
        self.v: B = None
        self.txt = txt

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

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

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