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

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

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

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.y: I = None
        self.u: G = None
        self.w: G = None
        self.t: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: I = None
        self.y: F = None
        self.s: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: C = None
        self.t: J = None
        self.u: E = None
        self.w: G = None
        self.y: B = None
        self.x: I = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.t: A = None
        self.u: H = None
        self.z: F = None
        self.x: D = None
        self.o: E = None
        self.r: D = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.y: I = None
        self.u: G = None
        self.w: G = None
        self.t: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: I = None
        self.y: F = None
        self.s: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: C = None
        self.t: J = None
        self.u: E = None
        self.w: G = None
        self.y: B = None
        self.x: I = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.t: A = None
        self.u: H = None
        self.z: F = None
        self.x: D = None
        self.o: E = None
        self.r: D = None
        self.txt = txt

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

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

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