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