解题
while True:
try:
a=input()
b=int(input())
str1=a[:b] #使用字符串定位到b位置
print(str1)
except:
break