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

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: D = None
        self.s: A = None
        self.p: D = None
        self.u: A = None
        self.q: H = None
        self.t: C = None
        self.o: D = None
        self.z: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: J = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: D = None
        self.s: A = None
        self.p: D = None
        self.u: A = None
        self.q: H = None
        self.t: C = None
        self.o: D = None
        self.z: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: J = None
        self.txt = txt

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

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

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

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

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