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[15];
int n, i, j;
void read() { cin >> a; }
void solve() {
  int flag = 0;
  read();
  for (i = 0; i < strlen(a); i++) {
    if (a[i] != 'A' && a[i] != 'F' && a[i] != 'W' && a[i] != 'E' &&
        a[i] != 'T' && a[i] != 'Y' && a[i] != 'I' && a[i] != 'L' &&
        a[i] != 'N' && a[i] != 'M' && a[i] != 'V' && a[i] != 'Z' &&
        a[i] != 'X' && a[i] != 'K' && a[i] != 'H')
      break;
  }
  if (i == strlen(a)) flag = 1;
  for (j = 0; j < strlen(a); j++) {
    if (a[j] != 'Q' && a[j] != 'R' && a[j] != 'U' && a[j] != 'O' &&
        a[j] != 'S' && a[j] != 'D' && a[j] != 'G' && a[j] != 'C' &&
        a[j] != 'B' && a[j] != 'P' && a[j] != 'J')
      break;
  }
  if (j == strlen(a)) flag = 1;
  if (flag)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
int main() {
  solve();
  return 0;
}