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.Scanner;

public class FinnoWord {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		
		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		int n= s.length();
		if(n<3) {
			System.out.println("YES");
			return;
		}
		int ch = (s.charAt(0)+s.charAt(1)-'A'-'A')%26;
		for(int i=2;i<n;i++) {
			if(ch!=((s.charAt(i)-'A')%26)) {
				System.out.println("NO");
				return;
			} else {
				ch = (s.charAt(i-1)+s.charAt(i)-'A'-'A')%26;
			}
		}
		System.out.println("YES");

	}

}