class A:
    def __init__(self, txt: str):
        self.v: E = None
        self.r: B = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.t: J = None
        self.r: J = None
        self.u: C = None
        self.q: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: J = None
        self.y: C = None
        self.t: I = None
        self.s: C = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.o: E = None
        self.t: B = None
        self.x: G = None
        self.v: I = None
        self.u: B = None
        self.r: A = None
        self.z: B = None
        self.s: I = None
        self.w: E = None
        self.txt = txt

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

g.v = n
g.r = l
l.z = f
l.s = b
l.u = b
l.q = n
l.w = n
l.r = a
l.y = j
l.x = g
l.v = h
j.u = n
j.p = n
j.r = n
j.z = l
j.x = l
j.y = b
j.o = h
j.q = k
j.t = k
j.s = k
e.w = g
n.o = g
n.t = f
n.r = f
n.u = j
n.q = e
k.v = b
k.o = b
k.r = b
k.u = n
k.x = n
k.p = a
k.s = h
k.q = j
k.z = g
k.t = e
h.x = f
h.y = j
h.s = j
h.t = a
b.v = n
b.u = n
b.z = j
b.y = f
b.t = f
b.x = h
b.p = g
b.o = k
b.r = e
a.s = b
a.v = h
a.r = h
a.q = h
a.z = n
a.u = e
f.o = n
f.w = n
f.t = l
f.u = l
f.z = l
f.x = h
f.v = a
f.s = a
f.r = g
assert j.q.x.u.q.p.txt == "
class A:
    def __init__(self, txt: str):
        self.v: E = None
        self.r: B = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.t: J = None
        self.r: J = None
        self.u: C = None
        self.q: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: J = None
        self.y: C = None
        self.t: I = None
        self.s: C = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.o: E = None
        self.t: B = None
        self.x: G = None
        self.v: I = None
        self.u: B = None
        self.r: A = None
        self.z: B = None
        self.s: I = None
        self.w: E = None
        self.txt = txt

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

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