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

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

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

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

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.w: I = None
        self.o: C = None
        self.s: H = None
        self.y: D = None
        self.t: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.q: G = None
        self.t: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: A = None
        self.z: H = None
        self.q: A = None
        self.x: A = None
        self.t: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: J = None
        self.u: B = None
        self.v: G = None
        self.o: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: I = None
        self.t: D = None
        self.u: F = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.q: G = None
        self.w: I = None
        self.o: C = None
        self.s: H = None
        self.y: D = None
        self.t: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: D = None
        self.q: G = None
        self.t: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: A = None
        self.z: H = None
        self.q: A = None
        self.x: A = None
        self.t: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: J = None
        self.u: B = None
        self.v: G = None
        self.o: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: I = None
        self.t: D = None
        self.u: F = None
        self.txt = txt

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

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