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 s[30];
int a[30];
int main() {
  cin >> s;
  int sum = 0;
  int len = strlen(s);
  a[0] = 1;
  a[4] = 1;
  a[5] = 1;
  a[7] = 1;
  a[8] = 1;
  a[10] = 1;
  a[11] = 1;
  a[12] = 1;
  a[13] = 1;
  a[19] = 1;
  a[21] = 1;
  a[22] = 1;
  a[23] = 1;
  a[24] = 1;
  a[25] = 1;
  for (int i = 0; i < len; i++) {
    sum += a[s[i] - 'A'];
  }
  if (sum == len || sum == 0) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}