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.*;
public class cf1145f {
    
    
    
    public static void main(String[] args) {
        
        Map<Character, String> map = new HashMap<Character, String>();
        String tmp = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
        map.put('A', "Y");
        map.put('B', "N");
        map.put('C', "N");
        map.put('D', "N");
        map.put('E', "Y");
        map.put('F', "Y");
        map.put('G', "N");
        map.put('H', "Y");
        map.put('I', "Y");
        map.put('J', "N");
        map.put('K', "Y");
        map.put('L', "Y");
        map.put('M', "Y");
        map.put('N', "Y");
        map.put('O', "N");
        map.put('P', "N");
        map.put('Q', "N");
        map.put('R', "N");
        map.put('S', "N");
        map.put('T', "Y");
        map.put('U', "N");
        map.put('V', "Y");
        map.put('W', "Y");
        map.put('X', "Y");
        map.put('Y', "Y");
        map.put('Z', "Y");
        
        
        Scanner in = new Scanner(System.in);
        String x = in.next();
        boolean is = map.get(x.charAt(0)).equals("Y");
        boolean ans = true;
        if (is) {
            for (int i = 1; i < x.length(); i++) {
                
                if (!map.get(x.charAt(i)).equals("Y")) {
                    ans = false;
                    break;
                }
                
            }
        } else {
            for (int i = 1; i < x.length(); i++) {
                
                if (!map.get(x.charAt(i)).equals("N")) {
                    ans = false;
                    break;
                }
                
            }
        }
        
        if (ans) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
        
        
        
        
        
        
        
    }
    
}