class A:
    def __init__(self, txt: str):
        self.o: J = None
        self.r: C = None
        self.x: G = None
        self.y: F = None
        self.u: B = None
        self.w: F = None
        self.v: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: J = None
        self.o: H = None
        self.r: J = None
        self.w: E = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.o: I = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: B = None
        self.y: B = None
        self.p: F = None
        self.z: F = None
        self.v: F = None
        self.r: D = None
        self.w: C = None
        self.s: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: J = None
        self.o: H = None
        self.r: J = None
        self.w: E = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.o: I = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: B = None
        self.y: B = None
        self.p: F = None
        self.z: F = None
        self.v: F = None
        self.r: D = None
        self.w: C = None
        self.s: G = None
        self.txt = txt

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

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