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:
s=input()
l=['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z']
l2=[]
for i in s:
    l2.append(l.index(i))
c=0
for i in range(len(l2)-2):
    if l2[i]+l2[i+1]==l2[i+2] or l2[i]+l2[i+1]-26==l2[i+2] :
        c+=1
if c==len(l2)-2 or len(l2)<=2:
    print("YES")
else:
    print("NO")