#include <bits/stdc++.h>
int main() {
  char name[100010];
  scanf("%s", name);
  int len = strlen(name);
  len--;
  for (int i = 0; i <= len; i++, len--) {
    if (name[i] != name[len]) {
      printf("NO\n");
      return 0;
    } else if (name[i] != 'A' && name[i] != 'H' && name[i] != 'I' &&
               name[i] != 'M' && name[i] != 'O' && name[i] != 'T' &&
               name[i] != 'U' && name[i] != 'V' && name[i] != 'W' &&
               name[i] != 'X' && name[i] != 'Y') {
      printf("NO\n");
      return 0;
    }
  }
  printf("YES\n");
  return 0;
}
