Problem4442--旋转字①

4442: 旋转字①

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

Description


读入一个串L和一个整数n,从该串最末位开始逐位移到字串的开头,求移n位后的新字串。

Input


两行


第一行一个字符串


第二行一个整数N

Output

旋转后的字符串

Sample Input Copy

computer
3

Sample Output Copy

tercompu

Source/Category

 140_T04'