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;
int main() {
  char a[10] = {0};
  int b[10] = {0};
  scanf("%s", a);
  int len = strlen(a);
  for (int i = 0; i < len; i++) {
    switch (a[i]) {
      case 'A':
        b[i] = 0;
        break;
      case 'B':
        b[i] = 1;
        break;
      case 'C':
        b[i] = 1;
        break;
      case 'D':
        b[i] = 1;
        break;
      case 'E':
        b[i] = 0;
        break;
      case 'F':
        b[i] = 0;
        break;
      case 'G':
        b[i] = 1;
        break;
      case 'H':
        b[i] = 0;
        break;
      case 'I':
        b[i] = 0;
        break;
      case 'J':
        b[i] = 1;
        break;
      case 'K':
        b[i] = 0;
        break;
      case 'L':
        b[i] = 0;
        break;
      case 'M':
        b[i] = 0;
        break;
      case 'N':
        b[i] = 0;
        break;
      case 'O':
        b[i] = 1;
        break;
      case 'P':
        b[i] = 1;
        break;
      case 'Q':
        b[i] = 1;
        break;
      case 'R':
        b[i] = 1;
        break;
      case 'S':
        b[i] = 1;
        break;
      case 'T':
        b[i] = 0;
        break;
      case 'U':
        b[i] = 1;
        break;
      case 'V':
        b[i] = 0;
        break;
      case 'W':
        b[i] = 0;
        break;
      case 'X':
        b[i] = 0;
        break;
      case 'Y':
        b[i] = 0;
        break;
      case 'Z':
        b[i] = 0;
        break;
    }
  }
  int sum = 0;
  for (int i = 0; i < len; i++) {
    sum += b[i];
  }
  if (sum == 0 || sum == len)
    printf("YES\n");
  else
    printf("NO\n");
  return 0;
}