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

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

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

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

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

d = A("d")
j = B("j")
a = C("a")
c = D("c")
g = E("g")
l = E("l")
e = D("e")
n = E("n")
f = B("f")
h = E("h")

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

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

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

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

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

d = A("d")
j = B("j")
a = C("a")
c = D("c")
g = E("g")
l = E("l")
e = D("e")
n = E("n")
f = B("f")
h = E("h")

d.v = l
d.u = c
d.r = g
d.z = h
d.o = a
j.t = a
a.y = f
c.v = e
c.y = e
c.t = f
c.o = a
c.p = l
g.s = n
g.y = f
g.u = c
g.x = d
l.s = h
l.y = f
l.u = e
l.x = d
e.v = c
e.y = c
e.t = f
e.o = a
e.p = n
n.s = g
n.y = j
n.u = c
n.x = d
f.t = a
h.s = g
h.y = j
h.u = e
h.x = d
assert h.s.s.u.t.t.y.t.y.t.txt == "a"