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:
import math 
a=input()
a=list(a)
if len(a)<3:
    print('YES')
else:
    x=ord(a[0])-65
    y=ord(a[1])-65
    # print(ord('L')-65)
    f=0
    for i in range(2,len(a)):
        if (ord(a[i])-65)!=(x+y)%26:
            print('NO')
            f=1
            break
        else:
            x=y
            y=ord(a[i])-65
    if f==0:
        print('YES')