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

class B:
    def __init__(self, txt: str):
        self.q: J = None
        self.r: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: A = None
        self.q: A = None
        self.o: F = None
        self.x: E = None
        self.s: H = None
        self.p: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.p: G = None
        self.s: J = None
        self.u: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: E = None
        self.r: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: G = None
        self.w: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: J = None
        self.r: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: A = None
        self.q: A = None
        self.o: F = None
        self.x: E = None
        self.s: H = None
        self.p: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.p: G = None
        self.s: J = None
        self.u: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: E = None
        self.r: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: G = None
        self.w: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: F = None
        self.txt = txt

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

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