Problem1229--旋转字

1229: 旋转字

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

从键盘中读入一个字串L(字串长度<=36个字符)和一个整数N(1<=N<=36),从该字串最末位开始逐位移到字串的开头,求移N位后的新字串。

Input

输入共两行,第一行字串L,第二行为字串长度N。

Output

输出旋转后的字串。

Sample Input Copy

computer
3

Sample Output Copy

tercompu

HINT

【输入样例2】
program
1
【输出样例2】
mprogra

Source/Category