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