#D2794. Ring
Ring
Ring
Write a program which finds a pattern in a ring shaped text .
Constraints
- length of length of
- and consists of lower-case letters
Input
In the first line, the text is given. In the second line, the pattern is given.
Output
If is in , print Yes in a line, otherwise No.
Examples
Input
vanceknowledgetoad advance
Output
Yes
Input
vanceknowledgetoad advanced
Output
No
inputFormat
Input
In the first line, the text is given. In the second line, the pattern is given.
outputFormat
Output
If is in , print Yes in a line, otherwise No.
Examples
Input
vanceknowledgetoad advance
Output
Yes
Input
vanceknowledgetoad advanced
Output
No
样例
vanceknowledgetoad
advance
Yes