class A:
    def __init__(self, txt: str):
        self.t: A = None
        self.w: D = None
        self.o: D = None
        self.v: D = None
        self.z: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.o: E = None
        self.z: C = None
        self.txt = txt

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

i.t = k
i.w = d
i.v = d
i.o = j
i.z = g
h.o = b
b.s = j
j.s = n
j.q = n
j.r = i
j.o = g
n.r = h
n.o = a
n.z = b
d.s = a
d.q = a
d.r = i
d.o = h
g.o = b
k.t = i
k.w = j
k.o = j
k.v = j
k.z = g
a.r = h
a.o = n
a.z = b
assert d.q.o.r.o.s.r.o.r.v.txt == "
class A:
    def __init__(self, txt: str):
        self.t: A = None
        self.w: D = None
        self.o: D = None
        self.v: D = None
        self.z: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.o: E = None
        self.z: C = None
        self.txt = txt

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

i.t = k
i.w = d
i.v = d
i.o = j
i.z = g
h.o = b
b.s = j
j.s = n
j.q = n
j.r = i
j.o = g
n.r = h
n.o = a
n.z = b
d.s = a
d.q = a
d.r = i
d.o = h
g.o = b
k.t = i
k.w = j
k.o = j
k.v = j
k.z = g
a.r = h
a.o = n
a.z = b
assert d.q.o.r.o.s.r.o.r.v.txt == "d"