class A:
    def __init__(self, txt: str):
        self.s: B = None
        self.p: G = None
        self.u: B = None
        self.v: C = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.x: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: H = None
        self.q: A = None
        self.y: H = None
        self.p: J = None
        self.v: G = None
        self.t: G = None
        self.s: D = None
        self.r: I = None
        self.w: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: I = None
        self.v: I = None
        self.o: B = None
        self.t: C = None
        self.z: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: A = None
        self.q: D = None
        self.s: B = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: H = None
        self.q: A = None
        self.y: H = None
        self.p: J = None
        self.v: G = None
        self.t: G = None
        self.s: D = None
        self.r: I = None
        self.w: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: I = None
        self.v: I = None
        self.o: B = None
        self.t: C = None
        self.z: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: G = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: A = None
        self.q: D = None
        self.s: B = None
        self.txt = txt

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

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