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 T, n, a[1000010];
char s[10010];
int cnt = 0;
int c[20] = {1, 1, 2, 3, 5, 8, 13, 21};
int mapp[30];
int main() {
  for (int i = 0; i <= 7; i++) mapp[c[i]] = 1;
  cin >> s;
  int ans = 1;
  for (int i = 2; i < strlen(s); i++) {
    if ((s[i] - 'A') != (s[i - 1] - 'A' + s[i - 2] - 'A') % 26) ans = 0;
  }
  if (ans)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}