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

public class Main2 {
	public static void main(String args[]) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String s = br.readLine();
		boolean isstraight = true;
		boolean iscurve = true;
		boolean[] curve = {false,true,true,true,false,false,true,false,false,true,false,false,false,false,true,true,true,true,true,false,true,false,false,false,false,false};
		for(int i = 0 ; i < s.length(); i++) {
			int c = s.charAt(i) - 65;
			if(!curve[c]) {
				iscurve = false;
				break;
			}
		}
		
		for(int i = 0 ; i < s.length(); i++) {
			int c = s.charAt(i) - 65;
			if(curve[c]) {
				isstraight = false;
				break;
			}
		}
		
		if(iscurve || isstraight) {
			System.out.println("YES");
		}else {
			System.out.println("NO");
		}
	}
}