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;
map<char, int> M;
int main() {
  cin >> A;
  M['A'] = 1;
  M['E'] = 1;
  M['F'] = 1;
  M['H'] = 1;
  M['I'] = 1;
  M['K'] = 1;
  M['L'] = 1;
  M['M'] = 1;
  M['N'] = 1;
  M['T'] = 1;
  M['V'] = 1;
  M['W'] = 1;
  M['X'] = 1;
  M['Y'] = 1;
  M['Z'] = 1;
  int n = A.length();
  int ans = n;
  for (int i = 0; i < n; i++) {
    ans -= M[A[i]];
  }
  if (!ans || ans == n) {
    printf("YES");
    return 0;
  }
  printf("NO");
  return 0;
}