class A:
    def __init__(self, txt: str):
        self.p: A = None
        self.z: C = None
        self.s: C = None
        self.t: D = None
        self.r: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.o: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.z: E = None
        self.v: D = None
        self.w: C = None
        self.q: C = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: A = None
        self.w: A = None
        self.txt = txt

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

n.p = e
n.z = i
n.s = i
n.r = i
n.t = d
g.y = i
g.o = m
i.s = j
i.z = j
i.v = d
i.w = k
i.q = k
d.t = k
d.p = a
j.u = d
j.z = e
j.w = n
a.y = k
a.o = e
k.s = j
k.z = j
k.v = d
k.w = i
k.q = i
m.p = n
m.z = k
m.s = i
m.r = i
m.t = d
e.p = n
e.z = k
e.s = k
e.t = d
e.r = i
assert d.t.q.q.v.p.y.txt == "
class A:
    def __init__(self, txt: str):
        self.p: A = None
        self.z: C = None
        self.s: C = None
        self.t: D = None
        self.r: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.o: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.z: E = None
        self.v: D = None
        self.w: C = None
        self.q: C = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: A = None
        self.w: A = None
        self.txt = txt

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

n.p = e
n.z = i
n.s = i
n.r = i
n.t = d
g.y = i
g.o = m
i.s = j
i.z = j
i.v = d
i.w = k
i.q = k
d.t = k
d.p = a
j.u = d
j.z = e
j.w = n
a.y = k
a.o = e
k.s = j
k.z = j
k.v = d
k.w = i
k.q = i
m.p = n
m.z = k
m.s = i
m.r = i
m.t = d
e.p = n
e.z = k
e.s = k
e.t = d
e.r = i
assert d.t.q.q.v.p.y.txt == "k"