class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.w: C = None
        self.y: D = None
        self.p: E = None
        self.o: E = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

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

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

i.s = g
i.w = e
i.y = k
i.p = l
i.o = a
b.z = k
b.t = k
g.s = e
g.o = c
g.q = i
g.u = l
k.z = b
k.x = b
a.v = c
a.z = i
a.q = k
a.w = l
e.s = g
e.o = c
e.q = i
e.u = l
l.v = c
l.z = i
l.q = k
l.w = a
c.z = k
c.t = k
assert g.s.o.z.z.t.z.t.txt == "k"