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.io.*;
import java.util.ArrayList;

public class Fibanacci_Words {
    public static void main(String[] args) throws IOException {
//                        BufferedReader f = new BufferedReader(new FileReader("C:\\Users\\Owner\\CF2021\\src\\test.in"));
//        PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter("C:\\Users\\Owner\\CF2021\\src\\test.out")));
        BufferedReader f = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out);
        String word = f.readLine();
        boolean pass = true;
        if(word.length() <= 2){
            out.println("YES");
        }
        else{
            int first = word.charAt(0) - 'A';
            int second = word.charAt(1) - 'A';
            for(int i = 2; i < word.length(); i++){
                int cur = word.charAt(i) - 'A';
                if((first + second) % 26 != cur){
                    out.println("NO");
                    pass = false;
                    break;
                }
                first = second;
                second = cur;
            }
            if(pass){
                out.println("YES");
            }

        }

        f.close();
        out.close();

    }
}