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.util.StringTokenizer;
import java.util.Scanner;
public class newprac {
	public static void main(String[] args) {
		FastReader sc = new FastReader();
		int tt=1;
//		tt = sc.nextInt();
		Solution sol = new Solution();
		while((tt--)!=0) {
			sol.solve();
		}
	}
}

class Solution{
	FastReader sc = new FastReader();
	public void solve() {
		char arr[] = sc.next().toCharArray();
		boolean ans = true;
		for(int i=2;i<arr.length;i++) {
			if((arr[i]-65)!=(arr[i-1]+arr[i-2]-2*65)%26) {
				ans = false;
				System.out.println("NO");
				return;
			}
		}
		System.out.println("YES");
	}
	
}


class FastReader {
    BufferedReader br;
    StringTokenizer st;

    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 str = "";
        try {
            str = br.readLine();
        }
        catch (IOException e) {
            e.printStackTrace();
        }
        return str;
    }
}