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;
import java.io.PrintWriter;
import java.util.StringTokenizer;


public class TaskA {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		FastReader sc = new FastReader();
		PrintWriter out = new PrintWriter(System.out);
		int test = 1;
		while(test-->0) {
			String a = sc.next();
			
			if(a.length()==1 || a.length()==2) {
				out.println("YES");
				continue;
			} else {
				for(int i = 2;i<a.length();i++) {
					if(Math.abs((a.charAt(i)-64)-Math.abs(a.charAt(i-1)-64+a.charAt(i-2)-64))%26!=1) {
						out.println("NO");
						out.close();
						System.exit(0);
					}
				}
				out.println("YES");
			}
		}
		
		out.close();
	}
	static class FastReader {
		
		StringTokenizer st;
		BufferedReader br;
		
		public FastReader() {
			br = new BufferedReader(
					new InputStreamReader(System.in));
		}
		
		String next() {
			while(st==null || !st.hasMoreElements()) {
				try {
					st = new StringTokenizer(br.readLine());
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
			return st.nextToken();
		}
		
		int nextInt() {
			return Integer.parseInt(next());
		}
		
		long nextLong() {
			return Long.parseLong(next());
		}
		
		double nextDouble() { 
			return Double.parseDouble(next()); 
		} 
		
		String nextLine() {
			String s = "";
			while(st==null || st.hasMoreElements()) {
				try {
					s = br.readLine();
				} catch (IOException e) {
					e.printStackTrace();
				}
			}
			return s;
		}
	}
}