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

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

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

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

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

n = A("n")
h = B("h")
i = C("i")
k = D("k")
j = E("j")
l = C("l")
g = B("g")
m = C("m")
d = A("d")

n.q = l
n.w = k
h.o = j
h.s = j
h.r = j
h.u = j
h.t = g
i.w = k
i.s = k
i.o = j
k.p = g
k.t = m
k.r = h
k.v = i
k.o = j
j.q = k
j.o = k
j.x = i
l.w = k
l.s = k
l.o = j
g.o = j
g.s = j
g.r = j
g.u = j
g.t = h
m.w = k
m.s = k
m.o = j
d.q = m
d.w = k
assert m.s.p.r.o.p.t.u.txt == "
class A:
    def __init__(self, txt: str):
        self.q: C = None
        self.w: D = None
        self.txt = txt

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

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

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

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

n = A("n")
h = B("h")
i = C("i")
k = D("k")
j = E("j")
l = C("l")
g = B("g")
m = C("m")
d = A("d")

n.q = l
n.w = k
h.o = j
h.s = j
h.r = j
h.u = j
h.t = g
i.w = k
i.s = k
i.o = j
k.p = g
k.t = m
k.r = h
k.v = i
k.o = j
j.q = k
j.o = k
j.x = i
l.w = k
l.s = k
l.o = j
g.o = j
g.s = j
g.r = j
g.u = j
g.t = h
m.w = k
m.s = k
m.o = j
d.q = m
d.w = k
assert m.s.p.r.o.p.t.u.txt == "j"