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> p;
int main() {
  p['A'] = 1;
  p['E'] = 1;
  p['F'] = 1;
  p['H'] = 1;
  p['I'] = 1;
  p['K'] = 1;
  p['L'] = 1;
  p['M'] = 1;
  p['N'] = 1;
  p['T'] = 1;
  p['V'] = 1;
  p['W'] = 1;
  p['X'] = 1;
  p['Y'] = 1;
  p['Z'] = 1;
  cin >> s;
  unsigned sum(0), t(s.size());
  for (register unsigned i(0); i < t; ++i) sum += p[s[i]];
  if (sum == t || !sum)
    puts("YES");
  else
    puts("NO");
  return 0;
}