#include <bits/stdc++.h>
using namespace std;
int main() {
  string palavra;
  cin >> palavra;
  for (long long int i = 0; i < palavra.size(); i++) {
    if (*(palavra.begin() + i) != *(palavra.end() - i - 1) or
        (palavra[i] != 'A' and palavra[i] != 'H' and palavra[i] != 'I' and
         palavra[i] != 'M' and palavra[i] != 'O' and palavra[i] != 'T' and
         palavra[i] != 'U' and palavra[i] != 'V' and palavra[i] != 'W' and
         palavra[i] != 'X' and palavra[i] != 'Y')) {
      cout << "NO\n";
      return 0;
    }
  }
  cout << "YES\n";
}
