class A:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.x: F = None
        self.q: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.t: A = None
        self.w: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.u: A = None
        self.y: F = None
        self.s: D = None
        self.x: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.v: E = None
        self.r: B = None
        self.q: B = None
        self.p: C = None
        self.y: G = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.x: F = None
        self.q: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: F = None
        self.t: A = None
        self.w: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.u: A = None
        self.y: F = None
        self.s: D = None
        self.x: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: G = None
        self.v: E = None
        self.r: B = None
        self.q: B = None
        self.p: C = None
        self.y: G = None
        self.txt = txt

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

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

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

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