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;
long long read() {
  long long X = 0, w = 0;
  char ch = 0;
  while (!isdigit(ch)) {
    w |= ch == '-';
    ch = getchar();
  }
  while (isdigit(ch)) X = (X << 3) + (X << 1) + (ch ^ 48), ch = getchar();
  return w ? -X : X;
}
void write(long long x) {
  if (x < 0) putchar('-'), x = -x;
  if (x > 9) write(x / 10);
  putchar(x % 10 + '0');
}
string st;
long long x;
signed main() {
  cin >> st;
  for (long long i = 0; i < st.size(); i++) {
    if (st[i] == 'A') x++;
    if (st[i] == 'E') x++;
    if (st[i] == 'F') x++;
    if (st[i] == 'H') x++;
    if (st[i] == 'I') x++;
    if (st[i] == 'K') x++;
    if (st[i] == 'L') x++;
    if (st[i] == 'M') x++;
    if (st[i] == 'N') x++;
    if (st[i] == 'T') x++;
    if (st[i] == 'V') x++;
    if (st[i] == 'W') x++;
    if (st[i] == 'X') x++;
    if (st[i] == 'Y') x++;
    if (st[i] == 'Z') x++;
  }
  if (x == 0 || x == st.size())
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}