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