class A:
    def __init__(self, txt: str):
        self.r: H = None
        self.z: H = None
        self.x: J = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: J = None
        self.z: E = None
        self.t: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: H = None
        self.r: D = None
        self.v: G = None
        self.txt = txt

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

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

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: J = None
        self.z: E = None
        self.t: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: H = None
        self.r: D = None
        self.v: G = None
        self.txt = txt

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

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

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

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

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

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

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