#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, t;
  string x = "AHIMOTUVWXY";
  cin >> s;
  t = s;
  for (int i = 0; i < s.size(); i++) {
    if (x.find(s[i]) == -1) {
      cout << "NO" << endl;
      return 0;
    }
  }
  reverse(s.begin(), s.end());
  if (t == s) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
