#include <bits/stdc++.h>
int cnd(char c) {
  if (c == 'A' || c == 'H' || c == 'I' || c == 'M' || c == 'O' || c == 'T' ||
      c == 'U' || c == 'V' || c == 'W' || c == 'X' || c == 'Y')
    return 1;
  return 0;
}
char s[1000000], z[1000000];
int main() {
  scanf("%s", s);
  int i, L = strlen(s);
  for (i = 0; i < L; i++)
    if (!cnd(s[i])) {
      puts("NO");
      return 0;
    }
  strcpy(z, s);
  for (i = 0; 2 * i < L; i++) {
    char t = z[i];
    z[i] = z[L - 1 - i];
    z[L - 1 - i] = t;
  }
  if (strcmp(s, z) == 0)
    puts("YES");
  else
    puts("NO");
}
