Problem: 

Input

The input consists of a single string of uppercase letters A-Z. The length of the string is between 1 and 10 characters, inclusive.

Output

Output "YES" or "NO".

Examples

Input


GENIUS


Output


YES


Input


DOCTOR


Output


NO


Input


IRENE


Output


YES


Input


MARY


Output


NO


Input


SMARTPHONE


Output


NO


Input


REVOLVER


Output


YES


Input


HOLMES


Output


NO


Input


WATSON


Output


YES

Solution (in PYTHON3):

Solution:
def cid(x):
    return ord(x) - ord('A')

def let(x):
    return chr(x + ord('A'))

S = input()
if len(S) <= 2:
    print('YES')
else:
    a = cid(S[0])
    b = cid(S[1])
    idx = 2
    while idx < len(S) and let((a + b) % 26) == S[idx]:
        a = cid(S[idx-1])
        b = cid(S[idx])
        idx += 1

    if idx == len(S):
        print('YES')
    else:
        print('NO')