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

class B:
    def __init__(self, txt: str):
        self.x: I = None
        self.t: H = None
        self.s: E = None
        self.u: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.s: G = None
        self.o: J = None
        self.v: E = None
        self.w: F = None
        self.u: E = None
        self.z: J = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: I = None
        self.t: H = None
        self.s: E = None
        self.u: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.s: G = None
        self.o: J = None
        self.v: E = None
        self.w: F = None
        self.u: E = None
        self.z: J = None
        self.txt = txt

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

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

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

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

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

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

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

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

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