Problem1317-- V1414 Dejected Birthday-盗窃

1317: V1414 Dejected Birthday-盗窃

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 0  Solved: 0
[Status] [Submit] [Creator:]

Description

基德穿破层层障碍终于来到了" 忧郁的生日" 面前." 忧郁的生日" 如前题所述封存于密码锁中.这个密码锁不是一般的密码锁,这是不一
般的密码锁!这个密码锁上显示着一串数字.旁边还有一串提示:The  password  is  in  the  number.The  number  is  on  screen,you  s-
hould  delete  N  numbers  as  1,2  or  3...9.The  last  number  should  be  the  smallest  of  all.The  last  number  is  then  passwo-
rd(基德:靠,提示居然是E文,无视我400的智商吗?!).为了成功盗取并尽快赶去青子家,基德请你编一个程序解决这个密码锁。

Input

输入共2行 第一行为一个不超过250位的数字; 第二行则为N。

Output

输出只有一行,即PASSWORD.

Sample Input Copy

178543
4

Sample Output Copy

13

HINT

数据范围
n不超过250位
s不超过n的长度