class A:
    def __init__(self, txt: str):
        self.q: E = None
        self.y: H = None
        self.u: F = None
        self.o: E = None
        self.v: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: G = None
        self.o: H = None
        self.w: J = None
        self.s: F = None
        self.p: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: H = None
        self.w: G = None
        self.o: D = None
        self.y: A = None
        self.v: F = None
        self.r: B = None
        self.x: A = None
        self.t: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.o: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: I = None
        self.p: B = None
        self.v: D = None
        self.r: D = None
        self.o: D = None
        self.q: H = None
        self.y: D = None
        self.z: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.q: H = None
        self.z: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: I = None
        self.o: A = None
        self.y: A = None
        self.v: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: D = None
        self.r: H = None
        self.o: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: H = None
        self.y: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: G = None
        self.o: H = None
        self.w: J = None
        self.s: F = None
        self.p: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: H = None
        self.w: G = None
        self.o: D = None
        self.y: A = None
        self.v: F = None
        self.r: B = None
        self.x: A = None
        self.t: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.o: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.s: I = None
        self.p: B = None
        self.v: D = None
        self.r: D = None
        self.o: D = None
        self.q: H = None
        self.y: D = None
        self.z: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: A = None
        self.q: H = None
        self.z: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: I = None
        self.o: A = None
        self.y: A = None
        self.v: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: D = None
        self.r: H = None
        self.o: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.s: H = None
        self.y: C = None
        self.txt = txt

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

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