class A:
    def __init__(self, txt: str):
        self.o: I = None
        self.y: G = None
        self.t: I = None
        self.z: F = None
        self.u: J = None
        self.s: D = None
        self.w: F = None
        self.q: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.x: F = None
        self.u: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.o: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: J = None
        self.t: I = None
        self.w: I = None
        self.o: H = None
        self.y: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.z: C = None
        self.w: C = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.x: F = None
        self.u: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.o: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: J = None
        self.t: I = None
        self.w: I = None
        self.o: H = None
        self.y: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.z: C = None
        self.w: C = None
        self.txt = txt

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

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

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

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

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

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