class A:
    def __init__(self, txt: str):
        self.z: D = None
        self.w: B = None
        self.x: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: F = None
        self.t: G = None
        self.p: J = None
        self.y: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: I = None
        self.s: C = None
        self.v: J = None
        self.q: B = None
        self.x: C = None
        self.z: I = None
        self.o: A = None
        self.r: I = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.z: H = None
        self.y: G = None
        self.r: F = None
        self.q: F = None
        self.t: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: F = None
        self.t: G = None
        self.p: J = None
        self.y: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: I = None
        self.s: C = None
        self.v: J = None
        self.q: B = None
        self.x: C = None
        self.z: I = None
        self.o: A = None
        self.r: I = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.z: H = None
        self.y: G = None
        self.r: F = None
        self.q: F = None
        self.t: E = None
        self.txt = txt

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

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