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

class B:
    def __init__(self, txt: str):
        self.y: J = None
        self.x: E = None
        self.u: J = None
        self.r: G = None
        self.p: F = None
        self.t: J = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.q: J = None
        self.y: G = None
        self.v: J = None
        self.w: A = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.q: H = None
        self.x: B = None
        self.w: J = None
        self.y: B = None
        self.r: F = None
        self.z: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: A = None
        self.u: D = None
        self.p: D = None
        self.r: B = None
        self.t: G = None
        self.y: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: J = None
        self.x: E = None
        self.u: J = None
        self.r: G = None
        self.p: F = None
        self.t: J = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.q: J = None
        self.y: G = None
        self.v: J = None
        self.w: A = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.q: H = None
        self.x: B = None
        self.w: J = None
        self.y: B = None
        self.r: F = None
        self.z: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: A = None
        self.u: D = None
        self.p: D = None
        self.r: B = None
        self.t: G = None
        self.y: B = None
        self.txt = txt

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

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