#include <bits/stdc++.h>
using namespace std;
int n;
string str;
int main() {
  cin >> str;
  n = str.size();
  for (int k = 0; k < n; k++) {
    if (str.at(k) != str.at(n - k - 1) || str.at(k) == 'B' ||
        str.at(k) == 'C' || str.at(k) == 'D' || str.at(k) == 'E' ||
        str.at(k) == 'F' || str.at(k) == 'G' || str.at(k) == 'J' ||
        str.at(k) == 'K' || str.at(k) == 'L' || str.at(k) == 'N' ||
        str.at(k) == 'P' || str.at(k) == 'Q' || str.at(k) == 'R' ||
        str.at(k) == 'S' || str.at(k) == 'Z') {
      cout << "NO" << endl;
      return 0;
    }
  }
  cout << "YES" << endl;
}
