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 CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
char a[] = {'A', 'E', 'F', 'H', 'I', 'K', 'L', 'M',
            'N', 'T', 'V', 'W', 'X', 'Y', 'Z'};
int main() {
  string s;
  int num1 = 0, num2 = 0;
  cin >> s;
  for (auto c : s) {
    bool flag = 0;
    for (int i = 0; i <= 14; i++)
      if (c == a[i]) flag = 1;
    if (flag)
      num1++;
    else
      num2++;
  }
  if (num1 == 0 || num2 == 0)
    puts("YES");
  else
    puts("NO");
  return 0;
}