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