3976. Rotate digits

Naive编程基础分支循环基本算法

时间限制:2000 ms

内存限制:512 MiB

题面

Enter two positive integers nn and mm, print the number of digits in nn and the result of right rotating of mm digits for nn. Note that the leading zeros should not be outputed.

样例

输入

1 1

输出

1 1

输入

123 2

输出

3 231

输入

1001234 5

输出

7 123410

输入

2100012345 55

输出

10 1234521000