class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.p: A = None
        self.s: G = None
        self.x: I = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.x: H = None
        self.z: J = None
        self.v: F = None
        self.s: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: C = None
        self.o: D = None
        self.s: J = None
        self.v: B = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.p: A = None
        self.s: G = None
        self.x: I = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.x: H = None
        self.z: J = None
        self.v: F = None
        self.s: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: C = None
        self.o: D = None
        self.s: J = None
        self.v: B = None
        self.txt = txt

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

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

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

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

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