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;
long long INF = 1e6;
void solve() {
  string n;
  cin >> n;
  long long temp = 0;
  long long a = n[0] - 'A', b = n[1] - 'A', num = n.length();
  for (long long i = 2; i < num; i++) {
    if (n[i] - 'A' != (a + b) % 26) {
      temp = -1;
      break;
      ;
    } else {
      a = b;
      b = n[i] - 'A';
    }
  }
  if (temp < 0)
    cout << "NO";
  else
    cout << "YES";
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  clock_t z = clock();
  long long t = 1;
  while (t--) solve();
  fprintf(stderr, "Total Time:%.3Lf\n",
          (long double)(clock() - z) / CLOCKS_PER_SEC),
      fflush(stderr);
  return 0;
}