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