class A:
    def __init__(self, txt: str):
        self.o: D = None
        self.t: B = None
        self.p: C = None
        self.w: J = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: I = None
        self.p: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.x: I = None
        self.r: F = None
        self.y: F = None
        self.o: J = None
        self.v: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: G = None
        self.r: D = None
        self.x: C = None
        self.p: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: B = None
        self.r: A = None
        self.t: A = None
        self.v: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: F = None
        self.t: D = None
        self.r: G = None
        self.s: J = None
        self.x: G = None
        self.y: B = None
        self.w: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: I = None
        self.p: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: F = None
        self.x: I = None
        self.r: F = None
        self.y: F = None
        self.o: J = None
        self.v: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: G = None
        self.r: D = None
        self.x: C = None
        self.p: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: B = None
        self.r: A = None
        self.t: A = None
        self.v: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: F = None
        self.t: D = None
        self.r: G = None
        self.s: J = None
        self.x: G = None
        self.y: B = None
        self.w: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

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

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