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;
int main() {
  int a[26] = {1, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1,
               1, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 1, 1};
  string s;
  cin >> s;
  int n = s.size(), v[15], flag = 1;
  for (int i = 0; i < n; i++) {
    if (a[s[i] - 65] == 0)
      v[i] = 0;
    else
      v[i] = 1;
  }
  for (int i = 0; i < n; i++) {
    for (int x = i + 1; x < n; x++) {
      if (v[i] != v[x]) flag = 0;
      break;
    }
  }
  if (flag == 0)
    printf("NO\n");
  else
    printf("YES\n");
  return 0;
}