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

class B:
    def __init__(self, txt: str):
        self.t: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.t: G = None
        self.w: G = None
        self.u: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.x: B = None
        self.u: E = None
        self.s: C = None
        self.q: A = None
        self.t: E = None
        self.r: D = None
        self.w: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.y: F = None
        self.z: G = None
        self.w: J = None
        self.q: J = None
        self.x: C = None
        self.v: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: C = None
        self.p: B = None
        self.r: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.t: G = None
        self.w: G = None
        self.u: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.o: D = None
        self.x: B = None
        self.u: E = None
        self.s: C = None
        self.q: A = None
        self.t: E = None
        self.r: D = None
        self.w: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.y: F = None
        self.z: G = None
        self.w: J = None
        self.q: J = None
        self.x: C = None
        self.v: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: C = None
        self.p: B = None
        self.r: B = None
        self.txt = txt

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

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