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 meme(f):
    if(len(f)<=2):
        return True
    a = (ord(f[0]) + ord(f[1]) - 2*ord('A'))%26
    for i in range(2,len(f)):
        if f[i] != chr(ord('A')+a):
            return False
        a = (ord(f[i-1]) + ord(f[i]) - 2 * ord('A'))%26
    return True

print("YES" if meme(input()) else "NO")