#include <bits/stdc++.h>
using namespace std;
const int MX = 2e5 + 5;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int p{0};
  string s, s1;
  cin >> s;
  s1 = s;
  for (int i = 0; i < s.size(); i++) {
    if (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') {
      p = 1;
    }
  }
  if (p) {
    cout << "NO"
         << "\n";
  } else {
    reverse(s1.begin(), s1.end());
    if (s1 == s) {
      cout << "YES"
           << "\n";
    } else {
      cout << "NO"
           << "\n";
    }
  }
  return 0;
}
