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 JAVA):

Solution:
import java.util.*;

public class Main
{
 
    
	public static void main(String[] args) {
	    
	    
 Scanner s = new Scanner(System.in);
		  
	       String a=s.nextLine();
	      
	       boolean flag=true;
	       for(int i=1;i<a.length()-1;i++) {
	           
	        int x=a.charAt(i)-65;
	        int y=a.charAt(i-1)-65;
	         int z=a.charAt(i+1)-65;
	        
	         int abc=x+y;
	         if(abc>25)
	             abc=abc-25;
	         
	    	   if(abc!=z&&abc-2!=z&&abc-1!=z)
	    	    flag=false;
	    		 
	    	   
	    	  }
	        if(flag)
	    	   System.out.println("YES");
	    	   else
	    	   System.out.println("NO");
    
    
	}
}