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;
void qmax(int &x, int y) {
  if (x < y) x = y;
}
void qmin(int &x, int y) {
  if (x > y) x = y;
}
inline long long read() {
  char s;
  long long k = 0, base = 1;
  while ((s = getchar()) != '-' && s != EOF && !(isdigit(s)))
    ;
  if (s == EOF) exit(0);
  if (s == '-') base = -1, s = getchar();
  while (isdigit(s)) {
    k = k * 10 + (s ^ '0');
    s = getchar();
  }
  return k * base;
}
inline void write(int x) {
  static char cnt, num[15];
  cnt = 0;
  if (!x) {
    printf("0");
    return;
  }
  for (; x; x /= 10) num[++cnt] = x % 10;
  for (; cnt; putchar(num[cnt--] + 48))
    ;
}
string a;
int Map[300];
int main() {
  cin >> a;
  int n = a.size();
  for (int i = 'A'; i <= 'Z'; i++) Map[i] = 1;
  Map['Q'] = 2;
  Map['R'] = 2;
  Map['U'] = 2;
  Map['O'] = 2;
  Map['P'] = 2;
  Map['S'] = 2;
  Map['D'] = 2;
  Map['G'] = 2;
  Map['J'] = 2;
  Map['C'] = 2;
  Map['B'] = 2;
  int sum = 0;
  for (int i = 0; i < n; i++) {
    sum |= Map[a[i]];
  }
  if (sum == 1 || sum == 2) {
    cout << "YES";
  } else {
    cout << "NO";
  }
  return 0;
}