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.Scanner;

public class NeatWords {

	public static void main(String[] args) {

		Scanner scan = new Scanner(System.in);
		String str;
		char myArray[];
		int len, nC, cC;
		nC = 0;
		cC = 0;
		str = scan.nextLine();
		str = str.toUpperCase();
		len = str.length();
		char lin[] = { 'A', 'E', 'F', 'H', 'I', 'M', 'L', 'N', 'T', 'V', 'X', 'Z', 'W', 'K','Y' };
		char nonLin[] = { 'B', 'C', 'D', 'G', 'J', 'O', 'P', 'Q', 'R', 'S', 'U' };

		myArray = new char[len];
		for (int i = 0; i < len; i++) {
			myArray[i] = str.charAt(i);

			for (int j = 0; j < lin.length; j++) {
				if (myArray[i] == lin[j]) {
					nC++;
				}
			}
			for (int k = 0; k < nonLin.length; k++) {
				if (myArray[i] == nonLin[k]) {
					cC++;
				}
			}
		}

		if (nC == str.length() || cC == str.length()) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
		scan.close();

	}

}