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

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

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

class D:
    def __init__(self, txt: str):
        self.y: I = None
        self.o: F = None
        self.z: B = None
        self.p: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: I = None
        self.r: C = None
        self.u: A = None
        self.z: A = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: H = None
        self.r: E = None
        self.o: F = None
        self.y: I = None
        self.p: C = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: I = None
        self.o: F = None
        self.z: B = None
        self.p: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: I = None
        self.r: C = None
        self.u: A = None
        self.z: A = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: H = None
        self.r: E = None
        self.o: F = None
        self.y: I = None
        self.p: C = None
        self.txt = txt

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

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