感动,迄今为止遇到最简单的一道题
str=input()
num=int(input())
print(str[:num])