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:
import os
from io import BytesIO

# input = BytesIO(os.read(0, os.fstat(0).st_size)).readline

def lii(): return list(map(int, input().split()))
def ii(): return int(input())


from string import ascii_lowercase

letters = {letter: i for i, letter in enumerate(ascii_lowercase)}

word = input().lower()

def main():

	# if set(ascii_lowercase) - set(word) != set():
	# 	return 'NO'

	if len(word) >= 2:
		prev = letters[word[0]]
		curr = letters[word[1]]
		for e in word[2:]:
			next_ = letters[e]

			if (curr + prev) % 26 == next_:
				prev = curr
				curr = next_
			else:
				return 'NO'
				
	return 'YES'

print(main())