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:
/*package whatever //do not write package name here */

import java.io.*;
import java.util.*;

public class GFG {
	public static void main (String[] args) 
	{
	    Scanner sc=new Scanner(System.in);
	    while(sc.hasNext())
	    {
	        String s=sc.next().trim();
	        int i=0;
	        int trigger=0;
	        for(i=2;i<s.length();i++)
	        {
	           int sum=(s.charAt(i-1)+s.charAt(i-2))-'A'-'A';
	           sum%=26;
	           if(sum!=(s.charAt(i)-'A'))
	           {
	               trigger++;
	               break;
	           }
	        }
	        if(trigger==1)System.out.println("NO");
	        else System.out.println("YES");
	    }
	}
}