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

class B:
    def __init__(self, txt: str):
        self.r: H = None
        self.o: I = None
        self.u: A = None
        self.y: D = None
        self.q: I = None
        self.t: C = None
        self.p: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.x: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.txt = txt

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: H = None
        self.o: I = None
        self.u: A = None
        self.y: D = None
        self.q: I = None
        self.t: C = None
        self.p: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.x: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.txt = txt

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

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

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

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

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

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

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