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