class A:
    def __init__(self, txt: str):
        self.y: H = None
        self.w: D = None
        self.p: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: A = None
        self.o: B = None
        self.w: A = None
        self.p: H = None
        self.x: D = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.v: G = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: A = None
        self.o: B = None
        self.w: A = None
        self.p: H = None
        self.x: D = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.v: G = None
        self.txt = txt

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

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

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