class A:
    def __init__(self, txt: str):
        self.z: I = None
        self.s: C = None
        self.p: C = None
        self.u: H = None
        self.y: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: E = None
        self.o: J = None
        self.u: E = None
        self.x: H = None
        self.v: G = None
        self.z: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.x: F = None
        self.z: H = None
        self.t: A = None
        self.w: I = None
        self.s: H = None
        self.q: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.s: A = None
        self.p: C = None
        self.r: A = None
        self.u: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: E = None
        self.v: F = None
        self.p: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.w: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: E = None
        self.o: J = None
        self.u: E = None
        self.x: H = None
        self.v: G = None
        self.z: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.x: F = None
        self.z: H = None
        self.t: A = None
        self.w: I = None
        self.s: H = None
        self.q: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.s: A = None
        self.p: C = None
        self.r: A = None
        self.u: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.w: E = None
        self.v: F = None
        self.p: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.w: E = None
        self.txt = txt

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

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