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

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

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

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.t: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

e = A("e")
b = B("b")
a = C("a")
j = D("j")
h = E("h")
k = F("k")
n = G("n")
g = A("g")
f = E("f")
d = F("d")

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.t: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.y: B = None
        self.txt = txt

e = A("e")
b = B("b")
a = C("a")
j = D("j")
h = E("h")
k = F("k")
n = G("n")
g = A("g")
f = E("f")
d = F("d")

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