class A:
    def __init__(self, txt: str):
        self.v: J = None
        self.z: C = None
        self.u: C = None
        self.y: I = None
        self.s: H = None
        self.o: B = None
        self.q: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: H = None
        self.t: B = None
        self.r: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: E = None
        self.o: G = None
        self.v: I = None
        self.p: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.w: D = None
        self.x: H = None
        self.q: C = None
        self.y: C = None
        self.p: J = None
        self.z: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.r: B = None
        self.w: E = None
        self.u: I = None
        self.y: B = None
        self.v: C = None
        self.z: E = None
        self.t: D = None
        self.p: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: A = None
        self.x: C = None
        self.r: F = None
        self.t: I = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: H = None
        self.t: B = None
        self.r: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: E = None
        self.o: G = None
        self.v: I = None
        self.p: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.w: D = None
        self.x: H = None
        self.q: C = None
        self.y: C = None
        self.p: J = None
        self.z: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.r: B = None
        self.w: E = None
        self.u: I = None
        self.y: B = None
        self.v: C = None
        self.z: E = None
        self.t: D = None
        self.p: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: A = None
        self.x: C = None
        self.r: F = None
        self.t: I = None
        self.txt = txt

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

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

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

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