Detect rotated strings Read two strings from stdin.
Output Yes if one string is a rotated version of the other.
Otherwise output No

Testcases

Input

CodeGolf GolfCode


Output

Yes


Input

stackexchange changestackex


Output

Yes


Input

stackexchange changestack


Output

No


Input

Hello World


Output

No
Ruby 49 41

a,b=$*;puts (a*2).sub(b,'')==a ?:yes: :no


Edit: replaced gets.split by $*