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

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.u: A = None
        self.s: C = None
        self.y: E = None
        self.t: A = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.u: A = None
        self.s: C = None
        self.y: E = None
        self.t: A = None
        self.txt = txt

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

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

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

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

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