tmp = list(input().split()) s = tmp[0] p = eval(tmp[1]) for i in range(p, len(s)): print(s[i], end = "")