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.*;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main{

public static void main(String[] args) throws NumberFormatException,IOException{
   
        BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
        // write ur code here
            String str = br.readLine();
            int mod = 'A';
      
            if(str.length()==1 || str.length()==2){
                System.out.println("YES");
                return;
            }
            int k1 = (int)(str.charAt(0)) - mod;
            int k2 = (int)(str.charAt(1)) - mod;
            for(int i=2;i<str.length();i++){
                int k = (int)str.charAt(i) - mod;
               
                int sum = k1 + k2;
                if(sum >= 26){
                    sum = sum - 26; 
                }
                if(k != (sum)){
                    System.out.println("NO");
                    return;
                }
                int temp = k2;
                k1 = k2;
                k2 = k;
            }
            System.out.println("YES");
            
    }
}