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

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

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.z: J = None
        self.v: I = None
        self.t: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: B = None
        self.z: I = None
        self.o: B = None
        self.p: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: J = None
        self.r: H = None
        self.q: A = None
        self.x: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.t: D = None
        self.s: I = None
        self.r: E = None
        self.u: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: I = None
        self.p: J = None
        self.y: G = None
        self.x: J = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.z: J = None
        self.v: I = None
        self.t: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: B = None
        self.z: I = None
        self.o: B = None
        self.p: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: J = None
        self.r: H = None
        self.q: A = None
        self.x: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.t: D = None
        self.s: I = None
        self.r: E = None
        self.u: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: I = None
        self.p: J = None
        self.y: G = None
        self.x: J = None
        self.txt = txt

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

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

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

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