class A:
    def __init__(self, txt: str):
        self.v: B = None
        self.r: A = None
        self.o: A = None
        self.w: C = None
        self.s: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: B = None
        self.u: E = None
        self.r: A = None
        self.x: E = None
        self.p: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.q: B = None
        self.r: E = None
        self.o: D = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: B = None
        self.u: E = None
        self.r: A = None
        self.x: E = None
        self.p: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: B = None
        self.q: B = None
        self.r: E = None
        self.o: D = None
        self.txt = txt

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

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

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

k.v = b
k.r = h
k.o = h
k.w = e
k.s = d
m.t = b
m.p = b
m.u = c
m.r = k
m.x = n
e.x = b
e.q = m
e.r = n
e.o = d
d.v = j
c.p = e
c.w = n
c.z = i
i.v = j
b.t = j
b.p = j
b.u = n
b.r = h
b.x = c
j.t = m
j.p = m
j.u = n
j.x = n
j.r = h
n.p = e
n.w = c
n.z = i
h.v = m
h.r = k
h.o = k
h.w = e
h.s = i
assert c.w.p.o.v.txt == "j"