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