class A:
    def __init__(self, txt: str):
        self.s: J = None
        self.z: B = None
        self.o: D = None
        self.x: D = None
        self.r: H = None
        self.u: I = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.w: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.q: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: D = None
        self.y: E = None
        self.z: G = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.w: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.q: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: D = None
        self.y: E = None
        self.z: G = None
        self.txt = txt

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

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