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.HashSet;
import java.util.Scanner;
import java.util.Set;

public class NeatWords {
    public static void main(String[] args) {

        char[] neat={'W', 'E' ,'T','Y','I','A','F','H','K','L','Z','X','V','N','M'};
        Set<Character> x=new HashSet<Character>();
        for (int i = 0; i < neat.length; i++) {
            x.add(neat[i]);
        }
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        char[] inp=s.toCharArray();
        Set<Character> y=new HashSet<Character>();
        int count=0;
        for (int i = 0; i < inp.length; i++) {
            if( !x.contains(inp[i]) ){
                count++;
            }
        }
        if(count==0 || count==inp.length) {
            System.out.println("YES");
        }
        else {
            System.out.println("NO");
        }
    }
}