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

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

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

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

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

h = A("h")
b = B("b")
k = C("k")
f = D("f")
a = E("a")
j = B("j")
e = D("e")
l = C("l")
i = A("i")

h.z = i
h.u = i
h.o = i
h.w = i
h.s = l
b.x = l
b.o = e
b.p = e
b.s = j
b.q = f
k.p = i
k.o = l
f.q = k
a.o = j
a.p = j
j.x = k
j.o = e
j.p = e
j.q = e
j.s = b
e.q = l
l.p = i
l.o = k
i.z = h
i.u = h
i.o = h
i.w = h
i.s = k
assert b.x.p.s.o.o.o.p.s.txt == "
class A:
    def __init__(self, txt: str):
        self.z: A = None
        self.u: A = None
        self.o: A = None
        self.s: C = None
        self.w: A = None
        self.txt = txt

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

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

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

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

h = A("h")
b = B("b")
k = C("k")
f = D("f")
a = E("a")
j = B("j")
e = D("e")
l = C("l")
i = A("i")

h.z = i
h.u = i
h.o = i
h.w = i
h.s = l
b.x = l
b.o = e
b.p = e
b.s = j
b.q = f
k.p = i
k.o = l
f.q = k
a.o = j
a.p = j
j.x = k
j.o = e
j.p = e
j.q = e
j.s = b
e.q = l
l.p = i
l.o = k
i.z = h
i.u = h
i.o = h
i.w = h
i.s = k
assert b.x.p.s.o.o.o.p.s.txt == "k"