class A:
    def __init__(self, txt: str):
        self.z: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: H = None
        self.x: F = None
        self.o: G = None
        self.y: H = None
        self.u: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.v: B = None
        self.z: B = None
        self.x: C = None
        self.t: C = None
        self.u: I = None
        self.s: C = None
        self.w: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: C = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.u: D = None
        self.v: J = None
        self.w: B = None
        self.o: D = None
        self.t: G = None
        self.r: A = None
        self.s: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: A = None
        self.z: G = None
        self.x: G = None
        self.o: D = None
        self.u: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: H = None
        self.x: F = None
        self.o: G = None
        self.y: H = None
        self.u: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.v: B = None
        self.z: B = None
        self.x: C = None
        self.t: C = None
        self.u: I = None
        self.s: C = None
        self.w: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: C = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.u: D = None
        self.v: J = None
        self.w: B = None
        self.o: D = None
        self.t: G = None
        self.r: A = None
        self.s: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: A = None
        self.z: G = None
        self.x: G = None
        self.o: D = None
        self.u: E = None
        self.txt = txt

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

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