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

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.p: E = None
        self.u: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: J = None
        self.p: E = None
        self.u: E = None
        self.s: B = None
        self.y: I = None
        self.o: B = None
        self.q: H = None
        self.v: H = None
        self.r: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: H = None
        self.x: E = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.o: C = None
        self.y: D = None
        self.u: E = None
        self.t: A = None
        self.v: A = None
        self.s: I = None
        self.z: J = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.p: E = None
        self.u: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: J = None
        self.p: E = None
        self.u: E = None
        self.s: B = None
        self.y: I = None
        self.o: B = None
        self.q: H = None
        self.v: H = None
        self.r: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: H = None
        self.x: E = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.o: C = None
        self.y: D = None
        self.u: E = None
        self.t: A = None
        self.v: A = None
        self.s: I = None
        self.z: J = None
        self.txt = txt

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

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

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

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