class A:
    def __init__(self, txt: str):
        self.w: F = None
        self.t: C = None
        self.s: D = None
        self.o: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: G = None
        self.v: D = None
        self.t: G = None
        self.w: D = None
        self.x: E = None
        self.q: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.o: G = None
        self.x: G = None
        self.t: C = None
        self.u: F = None
        self.p: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.o: G = None
        self.v: E = None
        self.p: C = None
        self.w: A = None
        self.y: G = None
        self.s: E = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

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

e = A("e")
h = B("h")
c = C("c")
j = D("j")
n = E("n")
g = F("g")
l = G("l")
f = F("f")
m = E("m")
a = D("a")

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

class B:
    def __init__(self, txt: str):
        self.u: G = None
        self.v: D = None
        self.t: G = None
        self.w: D = None
        self.x: E = None
        self.q: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.o: G = None
        self.x: G = None
        self.t: C = None
        self.u: F = None
        self.p: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.o: G = None
        self.v: E = None
        self.p: C = None
        self.w: A = None
        self.y: G = None
        self.s: E = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

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

e = A("e")
h = B("h")
c = C("c")
j = D("j")
n = E("n")
g = F("g")
l = G("l")
f = F("f")
m = E("m")
a = D("a")

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