#include <bits/stdc++.h>
using namespace std;
int main() {
  string x;
  cin >> x;
  int sum = 0, s;
  s = x.size();
  for (int i = 0; i < x.size(); i++) {
    if (x[i] == x[s - i - 1] &&
        (x[i] == 'A' || x[i] == 'H' || x[i] == 'I' || x[i] == 'M' ||
         x[i] == 'O' || x[i] == 'T' || x[i] == 'U' || x[i] == 'V' ||
         x[i] == 'W' || x[i] == 'X' || x[i] == 'Y'))
      sum++;
  }
  if (sum == s) {
    cout << "YES";
    return 0;
  }
  cout << "NO";
  return 0;
}
