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

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

class C:
    def __init__(self, txt: str):
        self.v: A = None
        self.z: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: C = None
        self.q: E = None
        self.z: A = None
        self.t: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: C = None
        self.w: A = None
        self.q: A = None
        self.t: I = None
        self.z: J = None
        self.v: D = None
        self.p: J = None
        self.s: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: F = None
        self.t: F = None
        self.o: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.y: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: A = None
        self.z: I = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: C = None
        self.q: E = None
        self.z: A = None
        self.t: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: C = None
        self.w: A = None
        self.q: A = None
        self.t: I = None
        self.z: J = None
        self.v: D = None
        self.p: J = None
        self.s: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: F = None
        self.t: F = None
        self.o: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.y: G = None
        self.txt = txt

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

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