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

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

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

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

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

k = A("k")
m = B("m")
n = C("n")
j = D("j")
h = E("h")
e = A("e")
c = A("c")
l = D("l")
a = B("a")
i = E("i")

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

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

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

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

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

k = A("k")
m = B("m")
n = C("n")
j = D("j")
h = E("h")
e = A("e")
c = A("c")
l = D("l")
a = B("a")
i = E("i")

k.w = h
k.o = e
k.v = j
m.r = n
m.t = n
m.v = a
m.y = k
m.w = i
n.t = c
n.q = j
j.u = k
h.r = i
h.z = n
h.p = l
e.w = h
e.o = c
e.v = l
c.w = i
c.o = k
c.v = j
l.u = e
a.r = n
a.t = n
a.v = m
a.y = k
a.w = i
i.r = h
i.z = n
i.p = l
assert l.u.o.o.v.u.w.z.t.txt == "c"