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

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

class C:
    def __init__(self, txt: str):
        self.r: B = None
        self.txt = txt

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

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

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

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

e = A("e")
d = B("d")
l = C("l")
a = D("a")
c = E("c")
i = F("i")
n = G("n")
f = G("f")
m = E("m")

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

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

class C:
    def __init__(self, txt: str):
        self.r: B = None
        self.txt = txt

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

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

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

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

e = A("e")
d = B("d")
l = C("l")
a = D("a")
c = E("c")
i = F("i")
n = G("n")
f = G("f")
m = E("m")

e.s = i
e.t = i
e.q = i
e.p = n
e.o = n
e.x = l
d.z = c
l.r = d
a.p = i
a.o = m
a.t = e
c.s = i
c.x = i
c.o = l
c.p = l
c.u = f
c.r = e
c.z = e
i.v = e
n.t = d
n.x = d
n.z = f
n.p = i
n.q = c
n.y = c
f.t = d
f.x = d
f.z = n
f.p = i
f.q = c
f.y = m
m.s = i
m.x = i
m.o = l
m.p = l
m.u = n
m.r = e
m.z = e
assert m.o.r.z.u.t.z.s.v.txt == "e"