#include <bits/stdc++.h>
using namespace std;
int i;
char s[100005];
int main() {
  scanf("%s", s);
  int l = strlen(s);
  for (i = 0; i < l; i++) {
    if (s[i] == s[l - 1 - i]) continue;
    return 0 * printf("NO\n");
  }
  for (i = 0; i < l; i++) {
    if (s[i] == 'A' || s[i] == 'H' || s[i] == 'I' || s[i] == 'M' ||
        s[i] == 'O' || s[i] == 'T' || s[i] == 'U' || s[i] == 'V' ||
        s[i] == 'W' || s[i] == 'X' || s[i] == 'Y')
      continue;
    return 0 * printf("NO\n");
  }
  printf("YES\n");
}
