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