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

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

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.r: J = None
        self.t: D = None
        self.p: G = None
        self.u: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: J = None
        self.y: I = None
        self.w: H = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.r: J = None
        self.t: D = None
        self.p: G = None
        self.u: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: J = None
        self.y: I = None
        self.w: H = None
        self.txt = txt

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

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

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

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

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

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

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

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