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;
string a;
int main() {
  cin >> a;
  bool f[28];
  memset(f, 0, sizeof(f));
  f['A' - 'A' + 1] = 1;
  f['E' - 'A' + 1] = 1;
  f['F' - 'A' + 1] = 1;
  f['H' - 'A' + 1] = 1;
  f['I' - 'A' + 1] = 1;
  f['K' - 'A' + 1] = 1;
  f['L' - 'A' + 1] = 1;
  f['M' - 'A' + 1] = 1;
  f['N' - 'A' + 1] = 1;
  f['T' - 'A' + 1] = 1;
  f['V' - 'A' + 1] = 1;
  f['W' - 'A' + 1] = 1;
  f['X' - 'A' + 1] = 1;
  f['Y' - 'A' + 1] = 1;
  f['Z' - 'A' + 1] = 1;
  int sum = 0, l = a.size();
  for (int i = 0; i < l; i++) sum += f[a[i] - 'A' + 1];
  if (sum == l || sum == 0)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}