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