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:
//package com.company;
import java.io.*;
import java.util.*;


public class Main {
    public static void main (String[] args) throws java.lang.Exception {
        FastReader sc = new FastReader();
        String str = sc.nextLine();
        boolean check = true;
        for(int i=0; i<=str.length()-3; i++){
            //System.out.println(i);
            if (((str.charAt(i) - 'A') + (str.charAt(i + 1) - 'A')+1)%26 != (str.charAt(i + 2) - 'A'+1)%26) {
                //System.out.println(((str.charAt(i) - 65) + (str.charAt(i + 1) - 65)+1)%26);
                //System.out.println((str.charAt(i + 2) - 64));
                //System.out.println();
                check = false;
                break;
            }
        }
        if(check)
        System.out.println("YES");
        else
            System.out.println("NO");

    }

    // Fast Reader Class
    static 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;
        }
    }
}