#include <bits/stdc++.h>
using namespace std;
int isgood[30] = {1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1,
                  0, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0};
int main() {
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  string rev = s;
  reverse(rev.begin(), rev.end());
  bool ans = (s == rev);
  for (int i = 0; i < s.length(); i++)
    if (!isgood[s[i] - 'A']) ans = false;
  if (ans)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
