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

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

class C:
    def __init__(self, txt: str):
        self.o: I = None
        self.q: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: F = None
        self.t: H = None
        self.y: B = None
        self.p: B = None
        self.z: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: B = None
        self.r: F = None
        self.q: G = None
        self.o: J = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: I = None
        self.q: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: F = None
        self.t: H = None
        self.y: B = None
        self.p: B = None
        self.z: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: B = None
        self.r: F = None
        self.q: G = None
        self.o: J = None
        self.txt = txt

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

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

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