class A:
    def __init__(self, txt: str):
        self.s: J = None
        self.u: E = None
        self.w: E = None
        self.z: B = None
        self.y: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: F = None
        self.u: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: I = None
        self.u: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: J = None
        self.o: E = None
        self.u: F = None
        self.x: F = None
        self.q: J = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.y: D = None
        self.v: J = None
        self.s: A = None
        self.q: F = None
        self.t: J = None
        self.o: E = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: F = None
        self.u: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: I = None
        self.u: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: J = None
        self.o: E = None
        self.u: F = None
        self.x: F = None
        self.q: J = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.y: D = None
        self.v: J = None
        self.s: A = None
        self.q: F = None
        self.t: J = None
        self.o: E = None
        self.txt = txt

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

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

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