class A:
    def __init__(self, txt: str):
        self.s: E = None
        self.u: G = None
        self.y: C = None
        self.t: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: J = None
        self.q: J = None
        self.t: G = None
        self.s: G = None
        self.y: E = None
        self.z: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.s: B = None
        self.z: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.w: A = None
        self.q: I = None
        self.z: J = None
        self.p: E = None
        self.x: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.u: B = None
        self.o: G = None
        self.s: H = None
        self.r: B = None
        self.x: C = None
        self.y: G = None
        self.q: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: J = None
        self.w: D = None
        self.r: D = None
        self.z: F = None
        self.o: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: J = None
        self.w: A = None
        self.txt = txt

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

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

j = A("j")
k = B("k")
m = C("m")
c = D("c")
l = E("l")
b = F("b")
e = G("e")
i = H("i")
f = I("f")
d = J("d")

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

class B:
    def __init__(self, txt: str):
        self.r: J = None
        self.q: J = None
        self.t: G = None
        self.s: G = None
        self.y: E = None
        self.z: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.s: B = None
        self.z: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.w: A = None
        self.q: I = None
        self.z: J = None
        self.p: E = None
        self.x: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: H = None
        self.u: B = None
        self.o: G = None
        self.s: H = None
        self.r: B = None
        self.x: C = None
        self.y: G = None
        self.q: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: J = None
        self.w: D = None
        self.r: D = None
        self.z: F = None
        self.o: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: J = None
        self.w: A = None
        self.txt = txt

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

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

j = A("j")
k = B("k")
m = C("m")
c = D("c")
l = E("l")
b = F("b")
e = G("e")
i = H("i")
f = I("f")
d = J("d")

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