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

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

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

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

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

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

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

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

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

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

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

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

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