You are given string and consisting of lowercase English letters.
Determine if equals after rotation.
That is, determine if equals after the following operation is performed some number of times:
Operation: Let . Change to .
Here, denotes the length of the string .
The input will contain 2 strings, and .
If equals after rotation, print
Yes; if it does not, print
Sample Input 1
Sample Output 1
Sample Input 2
Sample Output 2
Sample Input 3
Sample Output 3