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

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.x: D = None
        self.p: C = None
        self.txt = txt

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

i.w = a
i.t = k
i.q = m
i.z = h
i.s = b
a.w = b
a.t = b
a.o = j
k.y = m
k.u = i
m.s = h
m.t = h
m.z = j
m.o = k
j.t = i
j.x = m
j.p = k
b.t = i
b.x = d
b.p = k
h.w = a
h.t = k
h.q = m
h.z = i
h.s = j
d.s = h
d.t = h
d.z = b
d.o = k
assert i.q.z.t.w.txt == "
class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.t: C = None
        self.q: D = None
        self.z: A = None
        self.s: E = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.x: D = None
        self.p: C = None
        self.txt = txt

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

i.w = a
i.t = k
i.q = m
i.z = h
i.s = b
a.w = b
a.t = b
a.o = j
k.y = m
k.u = i
m.s = h
m.t = h
m.z = j
m.o = k
j.t = i
j.x = m
j.p = k
b.t = i
b.x = d
b.p = k
h.w = a
h.t = k
h.q = m
h.z = i
h.s = j
d.s = h
d.t = h
d.z = b
d.o = k
assert i.q.z.t.w.txt == "a"