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.util.*;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner in = new Scanner(System.in);
		String str = in.next();
		fibo(str);

	}

	public static void fibo(String str) {
		boolean ifFibo = true;
		char[] arr = { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S',
				'T', 'U', 'V', 'W', 'X', 'Y', 'Z' };
		if (str.length() == 1 || str.length() == 2) {
			//ifFibo = false;
		} else {
			int a0 = find(str.charAt(0), arr);

			int a1 = find(str.charAt(1), arr);
			for (int i = 2; i < str.length(); i++) {

				if (a0 + a1 <= 25 && str.charAt(i) != arr[a0 + a1]) {
					ifFibo = false;
					break;
				}
				if (a0 + a1 > 25 && str.charAt(i) != arr[a0 + a1 - 26]) {
					ifFibo = false;
					break;
				}
				a0 = a1;
				a1 = find(str.charAt(i), arr);
			}
		}

		if (ifFibo)
			System.out.println("YES");
		else
			System.out.println("NO");

	}

	public static int find(char ch, char[] arr) {
		int ans = -1;
		for (int i = 0; i < arr.length; i++) {
			if (arr[i] == ch) {
				ans = i;
				break;
			}
		}
		// System.out.println(ans);
		return ans;
	}

}