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

class B:
    def __init__(self, txt: str):
        self.t: B = None
        self.o: C = None
        self.p: B = None
        self.y: A = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: B = None
        self.o: C = None
        self.p: B = None
        self.y: A = None
        self.txt = txt

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

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

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

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

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