#K8786. Rotate String
Rotate String
Rotate String
Given a string s and an integer n, rotate the string s to the right by n positions. If n is greater than or equal to the length of the string, the rotation is performed modulo the string's length, i.e. \( n \) is replaced by \( n \mod |s| \). For example, rotating "hello" by 2 results in "lohel".
inputFormat
The input consists of two lines. The first line contains the non-empty string s, and the second line contains the integer n.
outputFormat
Output the rotated string.
## samplehello
2
lohel