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

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

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.t: D = None
        self.u: E = None
        self.w: E = None
        self.q: D = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.t: D = None
        self.u: E = None
        self.w: E = None
        self.q: D = None
        self.txt = txt

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

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

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

l.z = d
l.s = e
l.t = e
l.y = g
l.v = g
j.t = d
e.y = j
e.t = d
e.q = d
e.u = g
e.w = g
d.u = l
d.o = l
d.y = i
d.q = j
g.o = j
g.v = j
i.y = j
i.t = d
i.q = d
i.u = g
i.w = g
assert g.o.t.u.y.v.txt == "j"