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 long long int no = 3e6 + 5, modulo = 1e9 + 7, inf = 1e18, N = 2e3 + 1;
long long int ar[no], br[no], cr[no];
void solve() {
  long long int n = 0, m = 0, a = 0, b = 0, c = 0, d = 0, x = 0, y = 0, z = 0,
                w = 0, k = 0;
  string s;
  cin >> s;
  if (s.size() <= 2) {
    cout << "YES";
    return;
  }
  n = s.size();
  for (long long int i = 2; i < n; i++) {
    x = s[i - 1] - 'A' + s[i - 2] - 'A';
    x %= 26;
    y = s[i] - 'A';
    y %= 26;
    if (y != x) {
      cout << "NO";
      return;
    }
  }
  cout << "YES";
}
inline void runn() {}
signed main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  runn();
  long long int t = 1;
  cout << fixed << setprecision(15);
  for (long long int i = 1; i < t + 1; i++) {
    solve();
  }
}