#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, k, count, len;
  char ch[1000000], des[1000000];
  while (scanf("%s", ch) == 1) {
    len = strlen(ch);
    for (i = 0; i < len; i++) {
      des[i] = ch[i];
    }
    des[len] = '\0';
    reverse(ch, ch + len);
    count = 0;
    if (strcmp(ch, des) == 0) {
      for (i = 0; i < len; i++) {
        if (ch[i] == 'A' || ch[i] == 'H' || ch[i] == 'I' || ch[i] == 'M' ||
            ch[i] == 'O' || ch[i] == 'T' || ch[i] == 'U' || ch[i] == 'V' ||
            ch[i] == 'X' || ch[i] == 'Y' || ch[i] == 'W')
          count++;
        else
          break;
      }
      if (count == len)
        printf("YES\n");
      else
        printf("NO\n");
    } else
      printf("NO\n");
  }
  return 0;
}
