#include <bits/stdc++.h>
char str[100000 + 10] = {'\0'};
int main() {
  int i, flag = 0;
  gets(str);
  int n = strlen(str);
  for (i = 0; i < n; i++) {
    if (str[i] != str[n - i - 1] || str[i] == 'B' || str[i] == 'C' ||
        str[i] == 'D' || str[i] == 'E' || str[i] == 'F' || str[i] == 'G' ||
        str[i] == 'J' || str[i] == 'K' || str[i] == 'L' || str[i] == 'N' ||
        str[i] == 'P' || str[i] == 'Q' || str[i] == 'R' || str[i] == 'S' ||
        str[i] == 'Z') {
      flag = 1;
      break;
    }
  }
  if (!flag)
    printf("YES");
  else
    printf("NO");
  return 0;
}
