#include <bits/stdc++.h>
int main() {
  int i, j, l, x = 0;
  char s[100005];
  gets(s);
  l = strlen(s);
  for (i = 0, j = l - 1; i < l / 2; i++, j--) {
    if (s[i] != s[j]) {
      x = 1;
      break;
    }
  }
  if (x == 1) {
    printf("NO\n");
  } else {
    for (i = 0; i < l; 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') {
        x = 0;
      } else {
        x = 1;
        break;
      }
    }
    if (x == 1) {
      printf("NO\n");
    } else {
      printf("YES\n");
    }
  }
  return 0;
}
