#include <bits/stdc++.h>
using namespace std;
int main() {
  string s1;
  cin >> s1;
  string s = s1;
  reverse(s1.begin(), s1.end());
  if (s != s1) {
    cout << "NO" << endl;
    return 0;
  }
  char mir[11] = {'A', 'H', 'I', 'M', 'O', 'T', 'U', 'V', 'W', 'X', 'Y'};
  for (int i = 0; i < s.size(); ++i) {
    bool f = 0;
    for (int j = 0; j < 11; ++j) {
      if (s[i] == mir[j]) {
        f = 1;
        break;
      }
    }
    if (!f) {
      cout << "NO" << endl;
      return 0;
    }
  }
  cout << "YES" << endl;
  return 0;
}
