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

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

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.x: F = None
        self.v: D = None
        self.o: F = None
        self.r: I = None
        self.u: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.y: F = None
        self.v: I = None
        self.q: E = None
        self.r: J = None
        self.p: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: D = None
        self.x: F = None
        self.q: B = None
        self.r: I = None
        self.z: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: H = None
        self.txt = txt

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.x: F = None
        self.v: D = None
        self.o: F = None
        self.r: I = None
        self.u: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.y: F = None
        self.v: I = None
        self.q: E = None
        self.r: J = None
        self.p: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: D = None
        self.x: F = None
        self.q: B = None
        self.r: I = None
        self.z: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: H = None
        self.txt = txt

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

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

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

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

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