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;
inline int read() {
  int ret = 0, f = 1;
  char ch = getchar();
  while (ch > '9' || ch < '0') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    ret = (ret << 1) + (ret << 3) + ch - '0';
    ch = getchar();
  }
  return ret * f;
}
int len, str, cur;
char s[15];
int main() {
  cin >> s;
  len = strlen(s);
  for (register int i = 0; i < len; i++) {
    if (s[i] == 'A' || s[i] == 'E' || s[i] == 'F' || s[i] == 'H' ||
        s[i] == 'I' || s[i] == 'K' || s[i] == 'L' || s[i] == 'M' ||
        s[i] == 'N' || s[i] == 'T' || s[i] == 'V' || s[i] == 'W' ||
        s[i] == 'X' || s[i] == 'Y' || s[i] == 'Z')
      str++;
    else
      cur++;
  }
  if (str == 0 || cur == 0)
    printf("YES\n");
  else
    printf("NO\n");
  return 0;
}