#include <bits/stdc++.h>
long a, b, c, i, j, k, n, l;
char cad[100100];
int main() {
  scanf("%s", &cad);
  l = strlen(cad);
  for (i = l - 1; i >= 0; i--) {
    if (cad[i] != cad[l - 1 - i]) {
      a = -1;
      break;
    }
    if (cad[i] == 'A' || cad[i] == 'H' || cad[i] == 'I' || cad[i] == 'M' ||
        cad[i] == 'O' || cad[i] == 'T' || cad[i] == 'U' || cad[i] == 'V' ||
        cad[i] == 'W' || cad[i] == 'X' || cad[i] == 'Y') {
      k++;
    } else {
      a = -1;
      break;
    }
  }
  if (a == -1)
    printf("NO\n");
  else
    printf("YES\n");
}
