class A:
    def __init__(self, txt: str):
        self.q: F = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.q: J = None
        self.v: J = None
        self.w: F = None
        self.x: F = None
        self.u: H = None
        self.y: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: J = None
        self.v: B = None
        self.x: A = None
        self.p: D = None
        self.q: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.t: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.x: B = None
        self.v: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: J = None
        self.o: A = None
        self.q: I = None
        self.z: J = None
        self.x: B = None
        self.u: C = None
        self.w: J = None
        self.p: F = None
        self.y: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: H = None
        self.q: J = None
        self.o: H = None
        self.s: J = None
        self.u: G = None
        self.v: J = None
        self.r: G = None
        self.w: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: F = None
        self.x: E = None
        self.r: G = None
        self.q: I = None
        self.o: I = None
        self.y: I = None
        self.z: A = None
        self.txt = txt

l = A("l")
k = B("k")
a = C("a")
e = D("e")
i = E("i")
b = F("b")
n = G("n")
j = H("j")
d = I("d")
m = J("m")

l.q = b
k.t = b
k.o = n
a.w = e
e.q = m
e.v = m
e.w = b
e.x = b
e.u = j
e.y = a
i.u = m
i.v = k
i.x = l
i.p = e
i.q = n
b.p = i
b.t = n
n.r = l
n.x = k
n.v = b
j.t = m
j.z = m
j.w = m
j.o = l
j.q = d
j.x = k
j.u = a
j.p = b
j.y = i
d.y = j
d.o = j
d.q = m
d.s = m
d.v = m
d.u = n
d.r = n
d.w = a
m.u = b
m.x = i
m.r = n
m.q = d
m.o = d
m.y = d
m.z = l
assert a.w.u.q.s.txt == "
class A:
    def __init__(self, txt: str):
        self.q: F = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.q: J = None
        self.v: J = None
        self.w: F = None
        self.x: F = None
        self.u: H = None
        self.y: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: J = None
        self.v: B = None
        self.x: A = None
        self.p: D = None
        self.q: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.t: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: A = None
        self.x: B = None
        self.v: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: J = None
        self.o: A = None
        self.q: I = None
        self.z: J = None
        self.x: B = None
        self.u: C = None
        self.w: J = None
        self.p: F = None
        self.y: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: H = None
        self.q: J = None
        self.o: H = None
        self.s: J = None
        self.u: G = None
        self.v: J = None
        self.r: G = None
        self.w: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: F = None
        self.x: E = None
        self.r: G = None
        self.q: I = None
        self.o: I = None
        self.y: I = None
        self.z: A = None
        self.txt = txt

l = A("l")
k = B("k")
a = C("a")
e = D("e")
i = E("i")
b = F("b")
n = G("n")
j = H("j")
d = I("d")
m = J("m")

l.q = b
k.t = b
k.o = n
a.w = e
e.q = m
e.v = m
e.w = b
e.x = b
e.u = j
e.y = a
i.u = m
i.v = k
i.x = l
i.p = e
i.q = n
b.p = i
b.t = n
n.r = l
n.x = k
n.v = b
j.t = m
j.z = m
j.w = m
j.o = l
j.q = d
j.x = k
j.u = a
j.p = b
j.y = i
d.y = j
d.o = j
d.q = m
d.s = m
d.v = m
d.u = n
d.r = n
d.w = a
m.u = b
m.x = i
m.r = n
m.q = d
m.o = d
m.y = d
m.z = l
assert a.w.u.q.s.txt == "m"