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