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

class B:
    def __init__(self, txt: str):
        self.u: H = None
        self.s: E = None
        self.r: A = None
        self.t: A = None
        self.y: E = None
        self.o: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: H = None
        self.s: H = None
        self.u: G = None
        self.p: F = None
        self.z: B = None
        self.r: H = None
        self.t: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: I = None
        self.u: F = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.p: C = None
        self.t: G = None
        self.w: B = None
        self.o: J = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.s: J = None
        self.y: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: C = None
        self.r: F = None
        self.y: E = None
        self.z: E = None
        self.u: F = None
        self.o: A = None
        self.q: F = None
        self.s: G = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: H = None
        self.s: E = None
        self.r: A = None
        self.t: A = None
        self.y: E = None
        self.o: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: H = None
        self.s: H = None
        self.u: G = None
        self.p: F = None
        self.z: B = None
        self.r: H = None
        self.t: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: I = None
        self.u: F = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: D = None
        self.p: C = None
        self.t: G = None
        self.w: B = None
        self.o: J = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.s: J = None
        self.y: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: C = None
        self.r: F = None
        self.y: E = None
        self.z: E = None
        self.u: F = None
        self.o: A = None
        self.q: F = None
        self.s: G = None
        self.txt = txt

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

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

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