class A:
    def __init__(self, txt: str):
        self.u: B = None
        self.t: C = None
        self.x: B = None
        self.q: E = None
        self.z: B = None
        self.txt = txt

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

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

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

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

n = A("n")
a = B("a")
k = C("k")
c = D("c")
f = E("f")
h = C("h")
l = C("l")
d = B("d")
j = A("j")

n.u = d
n.x = d
n.t = l
n.q = f
n.z = a
a.w = d
a.z = l
a.y = l
a.t = f
a.v = c
k.p = n
k.u = a
k.v = f
c.z = h
f.p = n
h.p = n
h.u = d
h.v = f
l.p = n
l.u = d
l.v = f
d.w = a
d.z = h
d.y = h
d.t = f
d.v = c
j.u = a
j.x = a
j.z = a
j.t = h
j.q = f
assert c.z.v.p.t.u.t.p.t.u.txt == "
class A:
    def __init__(self, txt: str):
        self.u: B = None
        self.t: C = None
        self.x: B = None
        self.q: E = None
        self.z: B = None
        self.txt = txt

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

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

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

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

n = A("n")
a = B("a")
k = C("k")
c = D("c")
f = E("f")
h = C("h")
l = C("l")
d = B("d")
j = A("j")

n.u = d
n.x = d
n.t = l
n.q = f
n.z = a
a.w = d
a.z = l
a.y = l
a.t = f
a.v = c
k.p = n
k.u = a
k.v = f
c.z = h
f.p = n
h.p = n
h.u = d
h.v = f
l.p = n
l.u = d
l.v = f
d.w = a
d.z = h
d.y = h
d.t = f
d.v = c
j.u = a
j.x = a
j.z = a
j.t = h
j.q = f
assert c.z.v.p.t.u.t.p.t.u.txt == "d"