class A:
    def __init__(self, txt: str):
        self.v: E = None
        self.s: B = None
        self.x: A = None
        self.z: B = None
        self.r: D = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.o: B = None
        self.q: C = None
        self.w: C = None
        self.t: C = None
        self.txt = txt

j = A("j")
c = B("c")
m = C("m")
i = D("i")
b = E("b")
g = D("g")
h = E("h")
l = A("l")
a = A("a")

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.o: B = None
        self.q: C = None
        self.w: C = None
        self.t: C = None
        self.txt = txt

j = A("j")
c = B("c")
m = C("m")
i = D("i")
b = E("b")
g = D("g")
h = E("h")
l = A("l")
a = A("a")

j.v = b
j.s = c
j.z = c
j.x = l
j.r = g
c.q = g
c.z = g
c.v = m
c.u = i
m.p = b
m.y = h
m.u = l
i.t = l
b.o = c
b.q = m
b.w = m
b.t = m
g.t = l
h.o = c
h.q = m
h.w = m
h.t = m
l.v = h
l.s = c
l.z = c
l.x = a
l.r = g
a.v = b
a.s = c
a.z = c
a.x = l
a.r = i
assert c.v.y.o.v.p.t.y.o.txt == "c"