#D2794. Ring

    ID: 2324 Type: Default 1000ms 134MiB

Ring

Ring

Write a program which finds a pattern pp in a ring shaped text ss.

Constraints

  • 11 \leq length of pp \leq length of s100s \leq 100
  • ss and pp consists of lower-case letters

Input

In the first line, the text ss is given. In the second line, the pattern pp is given.

Output

If pp is in ss, 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 ss is given. In the second line, the pattern pp is given.

outputFormat

Output

If pp is in ss, print Yes in a line, otherwise No.

Examples

Input

vanceknowledgetoad advance

Output

Yes

Input

vanceknowledgetoad advanced

Output

No

样例

vanceknowledgetoad
advance
Yes