class A:
    def __init__(self, txt: str):
        self.p: B = None
        self.s: J = None
        self.w: I = None
        self.v: G = None
        self.u: H = None
        self.y: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: I = None
        self.q: H = None
        self.s: J = None
        self.x: H = None
        self.p: A = None
        self.r: G = None
        self.o: G = None
        self.txt = txt

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.o: C = None
        self.r: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: I = None
        self.q: H = None
        self.s: J = None
        self.x: H = None
        self.p: A = None
        self.r: G = None
        self.o: G = None
        self.txt = txt

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.o: C = None
        self.r: G = None
        self.txt = txt

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

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