2022级统计计算机双学位《程序设计原理与C语言》上机作业

1027. Rotate digits

单点时限: 2.0 sec

内存限制: 512 MB

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

样例

Input
1 1
Output
1 1
Input
123 2
Output
3 231
Input
1001234 5
Output
7 123410
Input
2100012345 55
Output
10 1234521000