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;
char s[1000000];
int ans1, ans2, f[1000];
int main() {
  f['A'] = f['E'] = f['F'] = f['H'] = f['I'] = f['K'] = f['L'] = f['M'] =
      f['N'] = f['T'] = f['V'] = f['W'] = f['X'] = f['Y'] = f['Z'] = 1;
  cin >> s;
  int slen = strlen(s);
  for (int i = 0; i < slen; i++)
    if (f[s[i]])
      ans1++;
    else
      ans2++;
  if (ans1 && ans2)
    puts("NO");
  else
    puts("YES");
}