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

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

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

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.w: E = None
        self.o: A = None
        self.t: A = None
        self.s: B = None
        self.txt = txt

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

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

h.v = m
h.u = j
h.p = j
h.t = i
j.o = k
j.v = l
d.w = b
d.r = j
d.s = i
l.y = h
l.o = h
l.w = f
l.t = i
l.s = j
c.p = i
c.x = j
c.o = j
i.v = c
i.u = j
i.p = j
i.t = h
k.y = i
k.t = i
k.w = m
k.o = h
k.s = j
b.w = d
b.r = j
b.s = h
f.p = h
f.x = j
f.o = j
m.p = i
m.x = j
m.o = j
assert m.o.o.s.v.t.u.v.txt == "
class A:
    def __init__(self, txt: str):
        self.v: E = None
        self.u: B = None
        self.t: A = None
        self.p: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.w: E = None
        self.o: A = None
        self.t: A = None
        self.s: B = None
        self.txt = txt

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

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

h.v = m
h.u = j
h.p = j
h.t = i
j.o = k
j.v = l
d.w = b
d.r = j
d.s = i
l.y = h
l.o = h
l.w = f
l.t = i
l.s = j
c.p = i
c.x = j
c.o = j
i.v = c
i.u = j
i.p = j
i.t = h
k.y = i
k.t = i
k.w = m
k.o = h
k.s = j
b.w = d
b.r = j
b.s = h
f.p = h
f.x = j
f.o = j
m.p = i
m.x = j
m.o = j
assert m.o.o.s.v.t.u.v.txt == "l"