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