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

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

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.v: B = None
        self.y: A = None
        self.u: J = None
        self.q: G = None
        self.t: G = None
        self.r: D = None
        self.w: F = None
        self.x: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.z: G = None
        self.s: H = None
        self.w: E = None
        self.p: C = None
        self.u: H = None
        self.o: F = None
        self.t: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: A = None
        self.z: G = None
        self.y: B = None
        self.u: F = None
        self.r: H = None
        self.o: F = None
        self.p: J = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.p: C = None
        self.r: F = None
        self.y: F = None
        self.v: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: G = None
        self.t: E = None
        self.v: J = None
        self.w: J = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.v: B = None
        self.y: A = None
        self.u: J = None
        self.q: G = None
        self.t: G = None
        self.r: D = None
        self.w: F = None
        self.x: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: F = None
        self.z: G = None
        self.s: H = None
        self.w: E = None
        self.p: C = None
        self.u: H = None
        self.o: F = None
        self.t: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: A = None
        self.z: G = None
        self.y: B = None
        self.u: F = None
        self.r: H = None
        self.o: F = None
        self.p: J = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.p: C = None
        self.r: F = None
        self.y: F = None
        self.v: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: G = None
        self.t: E = None
        self.v: J = None
        self.w: J = None
        self.txt = txt

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

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

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