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

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

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

class D:
    def __init__(self, txt: str):
        self.v: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.w: J = None
        self.s: F = None
        self.v: I = None
        self.z: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.x: I = None
        self.txt = txt

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

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

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.v: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.w: J = None
        self.s: F = None
        self.v: I = None
        self.z: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: C = None
        self.x: I = None
        self.txt = txt

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

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

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

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

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

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