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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: E = None
        self.t: D = None
        self.o: G = None
        self.x: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: I = None
        self.w: J = None
        self.q: E = None
        self.z: B = None
        self.t: B = None
        self.p: E = None
        self.txt = txt

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

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

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: E = None
        self.t: D = None
        self.o: G = None
        self.x: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: I = None
        self.w: J = None
        self.q: E = None
        self.z: B = None
        self.t: B = None
        self.p: E = None
        self.txt = txt

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

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

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

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