class A:
    def __init__(self, txt: str):
        self.v: I = None
        self.r: J = None
        self.y: D = None
        self.w: C = None
        self.z: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.v: H = None
        self.z: B = None
        self.q: J = None
        self.x: B = None
        self.p: I = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.q: F = None
        self.p: G = None
        self.x: E = None
        self.r: B = None
        self.v: C = None
        self.z: F = None
        self.o: B = None
        self.y: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: D = None
        self.y: D = None
        self.p: D = None
        self.o: G = None
        self.r: D = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.v: H = None
        self.z: B = None
        self.q: J = None
        self.x: B = None
        self.p: I = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.q: F = None
        self.p: G = None
        self.x: E = None
        self.r: B = None
        self.v: C = None
        self.z: F = None
        self.o: B = None
        self.y: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: D = None
        self.y: D = None
        self.p: D = None
        self.o: G = None
        self.r: D = None
        self.txt = txt

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

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

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