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 codeforces;

import java.util.Scanner;

public class IsItRated {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner in = new Scanner(System.in);
		String str = "";
//		while (in.hasNextLine()) {
		str = in.nextLine();
		int x = 0; 
		for (int i = 2; i < str.length(); i++) {
			if (str.charAt(i) - 'A' != (str.charAt(i - 1) - 'A' + str.charAt(i - 2) - 'A') % 26) {
				System.out.println("NO");
				x = 1;
				break;
			}
		}
		if (x == 0) System.out.println("YES");
//		else System.out.println("NO");
//		}
//		int x = in.nextInt();
//		System.out.println(Math.sqrt(x));
	}

}