class A:
    def __init__(self, txt: str):
        self.z: J = None
        self.p: D = None
        self.v: I = None
        self.s: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: C = None
        self.u: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: B = None
        self.p: B = None
        self.y: G = None
        self.t: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: J = None
        self.o: I = None
        self.y: J = None
        self.p: J = None
        self.q: E = None
        self.s: A = None
        self.u: C = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.q: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: I = None
        self.p: G = None
        self.v: A = None
        self.x: D = None
        self.r: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: C = None
        self.u: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: B = None
        self.p: B = None
        self.y: G = None
        self.t: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: J = None
        self.o: I = None
        self.y: J = None
        self.p: J = None
        self.q: E = None
        self.s: A = None
        self.u: C = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.q: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: I = None
        self.p: G = None
        self.v: A = None
        self.x: D = None
        self.r: B = None
        self.txt = txt

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

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