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;
map<char, bool> f;
int main() {
  ios::sync_with_stdio(false);
  f['A'] = 1;
  f['E'] = 1;
  f['F'] = 1;
  f['H'] = 1;
  f['I'] = 1;
  f['K'] = 1;
  f['L'] = 1;
  f['M'] = 1;
  f['N'] = 1;
  f['T'] = 1;
  f['V'] = 1;
  f['W'] = 1;
  f['X'] = 1;
  f['Y'] = 1;
  f['Z'] = 1;
  cin >> s;
  int sum = 0;
  for (int i = 0; i < s.size(); i++) sum += f[s[i]];
  if (sum == s.size() or sum == 0)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}