

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
#include <bits/stdc++.h>
using namespace std;
using namespace std;
string yes = "YES";
string no = "NO";
long long f(long long n) {
  long long k1 = 5 * n * n + 4;
  long long k2 = 5 * n * n - 4;
  long long k3 = sqrt(5 * n * n + 4);
  long long k4 = sqrt(5 * n * n - 4);
  return (k3 * k3) == k1 or (k4 * k4) == k2;
}
int main() {
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  int cnt = 0;
  int k1 = s[0] - 'A';
  int k2 = s[1] - 'A';
  int k3 = s[2] - 'A';
  if (s.size() <= 2)
    puts("YES");
  else if ((k1 + k2) % 26 == k3) {
    puts("YES");
  } else
    puts("NO");
}
