#abc232b. [abc232_b]Caesar Cipher
[abc232_b]Caesar Cipher
Problem Statement
Takahashi has a string consisting of lowercase English letters.
On this string, he will do the operation below just once.
- First, choose a non-negative integer .
- Then, shift each character of to the right by (see below).
Here,
a
shifted to the right by isb
;b
shifted to the right by isc
;c
shifted to the right by isd
;y
shifted to the right by isz
;z
shifted to the right by isa
.
For example, b
shifted to the right by is f
, and y
shifted to the right by is b
.
You are given a string . Determine whether Takahashi can make equal by the operation above.
Constraints
- Each of and is a string of length between and (inclusive) consisting of lowercase English letters.
- The lengths of and are equal.
Input
Input is given from Standard Input in the following format:
Output
If Takahashi can make equal , print Yes
; if not, print No
.
Sample Input 1
abc
ijk
Sample Output 1
Yes
When Takahashi chooses ,
a
is shifted to the right by and becomesi
,b
is shifted to the right by and becomesj
,c
is shifted to the right by and becomesk
,
and now and are equal.
Therefore, he can make equal , so Yes
should be printed.
Sample Input 2
z
a
Sample Output 2
Yes
Choosing makes and equal.
Note that the letter on the right of z
is a
.
Sample Input 3
ppq
qqp
Sample Output 3
No
There is no non-negative integer that he can choose to make equal , so No
should be printed.
Sample Input 4
atcoder
atcoder
Sample Output 4
Yes
Choosing makes and equal.