Problem Description

Check if b is a rotation of a (case-sensitive). Print YES or NO.

Input Format

Two lines a and b.

Output Format

YES or NO.

Sample Test Case

Input:
abcd cdab
Output:
YES

Constraints

|a|,|b|

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next