class A:
    def __init__(self, txt: str):
        self.r: E = None
        self.v: D = None
        self.z: B = None
        self.p: D = None
        self.t: D = None
        self.y: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: E = None
        self.s: F = None
        self.o: D = None
        self.x: D = None
        self.z: F = None
        self.t: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.o: F = None
        self.x: B = None
        self.q: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: E = None
        self.s: F = None
        self.o: D = None
        self.x: D = None
        self.z: F = None
        self.t: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.o: F = None
        self.x: B = None
        self.q: D = None
        self.txt = txt

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

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