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:
dict={'a':1,'b':2,'c':3,'d':4,'e':5,'f':6,'g':7,'h':8,'i':9,'j':10,
'k':11,'l':12,'m':13,'n':14,'o':15,'p':16,'q':17,'r':18,'s':19,'t':20,'u':21,'v':22,'w':23,'x':24,'y':25,'z':26}
n=input().lower()
b=[]
for i in list(n):
    b.append(dict[i])


for i in range(len(b)-2):
    if b[i]+b[i+1]>26:
        if b[i+2]!=b[i]+b[i+1]-27:
            print('NO')
            break
    else:
        if b[i]+b[i+1]!=b[i+2]+1:
            print('NO')
            break
        
        
else:
    print('YES')