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;
bool b[27];
bool bl;
string s;
int main() {
  b[2] = 1;
  b[3] = 1;
  b[4] = 1;
  b[7] = 1;
  b[10] = 1;
  b[15] = 1;
  b[16] = 1;
  b[17] = 1;
  b[18] = 1;
  b[19] = 1;
  b[21] = 1;
  cin >> s;
  if (b[s[0] - 64] == 1) bl = 1;
  for (int i = 0; i < s.length(); i++) {
    if (b[s[i] - 64] == 1 && bl == 0) {
      cout << "NO" << endl;
      return 0;
    }
    if (b[s[i] - 64] == 0 && bl == 1) {
      cout << "NO" << endl;
      return 0;
    }
  }
  cout << "YES" << endl;
  return 0;
}