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

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

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

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

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

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

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

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

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

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

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

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

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