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

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.y: D = None
        self.o: B = None
        self.q: B = None
        self.t: B = None
        self.txt = txt

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

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

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

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

g.s = j
a.s = j
a.y = i
a.o = n
a.q = m
a.t = m
j.v = k
j.r = g
j.q = i
i.y = k
d.r = a
d.o = a
d.v = i
d.q = i
e.s = j
k.r = n
k.v = i
k.q = i
k.o = a
n.s = j
n.y = i
n.o = a
n.q = a
n.t = m
m.s = j
m.y = i
m.o = a
m.q = a
m.t = a
assert d.q.y.o.txt == "
class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: C = None
        self.y: D = None
        self.o: B = None
        self.q: B = None
        self.t: B = None
        self.txt = txt

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

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

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

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

g.s = j
a.s = j
a.y = i
a.o = n
a.q = m
a.t = m
j.v = k
j.r = g
j.q = i
i.y = k
d.r = a
d.o = a
d.v = i
d.q = i
e.s = j
k.r = n
k.v = i
k.q = i
k.o = a
n.s = j
n.y = i
n.o = a
n.q = a
n.t = m
m.s = j
m.y = i
m.o = a
m.q = a
m.t = a
assert d.q.y.o.txt == "a"