@staticmethod
def a():
    (s, n) = sys.stdin.read().split()
    n = int(n)
    (i, j) = divmod((n - 1), 5)
    print((s[i] + s[j]))
@staticmethod
def a():
    (s, n) = sys.stdin.read().split()
    n = int(n)
    (i, j) = divmod((n - 1), 5)
    print((s[i] + s[j]))