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:
n=input()
test_list=[]
alpha = 'a'
for i in range(0, 26):
    test_list.append(alpha.upper())
    alpha = chr(ord(alpha) + 1)
if(len(n)<=2):
  print("YES")
else:
  a=test_list.index(n[0])
  d=test_list.index(n[1])
  v=0
  for j in range(2,len(n)):
	  k=(a+d)% 26
	  if(k == test_list.index(n[j])):
		  v=1
		  a=test_list.index(n[j-1])
		  d=test_list.index(n[j])
	  else:
		  v=0
		  break
  if(v==0):
	  print("NO")
  else:
	  print("YES")