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;
const char s[] = {'A', 'E', 'F', 'H', 'I', 'K', 'L', 'M',
                  'N', 'T', 'V', 'W', 'X', 'Y', 'Z'};
int len, sum1, sum2;
char a[10100000];
int main() {
  scanf("%s", a);
  len = strlen(a);
  for (int i = 0; i < len; ++i) {
    bool check = false;
    for (int j = 0; j < 15; ++j) {
      if (a[i] == s[j]) {
        check = true;
        ++sum1;
        break;
      }
    }
    if (!check) ++sum2;
    if (sum1 && sum2) {
      printf("NO");
      return 0;
    }
  }
  printf("YES");
  return 0;
}