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

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

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

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

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

e = A("e")
g = B("g")
k = C("k")
a = D("a")
l = E("l")
h = D("h")
d = C("d")
j = D("j")
i = D("i")
b = C("b")

e.v = a
e.t = d
g.o = a
g.u = e
g.q = e
g.r = b
k.p = e
k.s = e
k.z = g
a.t = i
a.q = d
a.x = g
a.s = l
a.z = b
l.s = g
l.y = e
l.o = i
h.t = j
h.q = d
h.x = g
h.s = l
h.z = b
d.p = e
d.s = e
d.z = g
j.t = a
j.q = b
j.x = g
j.s = l
j.z = d
i.t = a
i.q = b
i.x = g
i.s = l
i.z = k
b.p = e
b.s = e
b.z = g
assert b.z.o.s.o.s.y.v.z.txt == "
class A:
    def __init__(self, txt: str):
        self.v: D = None
        self.t: C = None
        self.txt = txt

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

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

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

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

e = A("e")
g = B("g")
k = C("k")
a = D("a")
l = E("l")
h = D("h")
d = C("d")
j = D("j")
i = D("i")
b = C("b")

e.v = a
e.t = d
g.o = a
g.u = e
g.q = e
g.r = b
k.p = e
k.s = e
k.z = g
a.t = i
a.q = d
a.x = g
a.s = l
a.z = b
l.s = g
l.y = e
l.o = i
h.t = j
h.q = d
h.x = g
h.s = l
h.z = b
d.p = e
d.s = e
d.z = g
j.t = a
j.q = b
j.x = g
j.s = l
j.z = d
i.t = a
i.q = b
i.x = g
i.s = l
i.z = k
b.p = e
b.s = e
b.z = g
assert b.z.o.s.o.s.y.v.z.txt == "b"