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;
const int maxn = 1e6 + 6;
const long long inf = 0x3f3f3f3f;
const long long mod = 1e9 + 7;
string s = "AEFHIKLMNTVWXYZ";
int check(char c) {
  int len = s.length();
  for (int i = 0; i < len; i++) {
    if (c == s[i]) return 1;
  }
  return 0;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  string str;
  cin >> str;
  int flg = check(str[0]);
  int len = str.length();
  for (int i = 1; i < len; i++) {
    if (check(str[i]) != flg) {
      cout << "NO" << endl;
      return 0;
    }
  }
  cout << "YES" << endl;
  return 0;
}