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

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.t: G = None
        self.y: A = None
        self.z: F = None
        self.v: A = None
        self.w: H = None
        self.q: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: G = None
        self.t: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: J = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.p: A = None
        self.t: F = None
        self.r: F = None
        self.z: C = None
        self.q: G = None
        self.v: D = None
        self.u: D = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.t: G = None
        self.y: A = None
        self.z: F = None
        self.v: A = None
        self.w: H = None
        self.q: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: G = None
        self.t: I = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: J = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.p: A = None
        self.t: F = None
        self.r: F = None
        self.z: C = None
        self.q: G = None
        self.v: D = None
        self.u: D = None
        self.txt = txt

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

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

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