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:
ll = ['A','E','F','H','I','K','L','M','N','T','V','W','X','Y','Z']
s = input()
f1 = 0
f2 = 0
for i in range(len(s)):
     f1 = 0
     for j in range(15):
          if (s[i] == ll[j]):
               f1 = 1
               if (not(i)):
                    f2 = 1
               else:
                    if (not(f2)):
                         print("NO")
                         exit()
     if(not(f1)):
          if(not(i)):
               f2 = 0
          else:
               if(f2):
                    print("NO")
                    exit()
print("YES")