Write a program which finds a pattern p in a ring shaped text s.
In the first line, the text s is given.
In the second line, the pattern p is given.
If p is in s, print Yes in a line, otherwise No.
vanceknowledgetoad advance
Yes
vanceknowledgetoad advanced
No