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