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

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

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

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

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

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

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

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

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

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

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

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

b.p = f
b.o = f
b.u = k
b.t = j
b.w = m
c.r = l
c.w = j
c.y = d
c.q = m
f.u = l
f.p = b
f.r = d
f.o = m
k.u = h
k.s = b
m.x = k
m.o = b
m.r = i
m.q = h
j.r = l
j.w = c
j.y = k
j.q = m
h.p = f
h.o = f
h.u = k
h.t = j
h.w = l
l.x = d
l.o = h
l.q = h
l.r = m
d.u = b
d.s = b
i.x = k
i.o = b
i.r = m
i.q = h
assert i.x.s.u.s.u.txt == "k"