#include <bits/stdc++.h>
using namespace std;
int is_match(char *str) {
  int n = strlen(str);
  for (int i = 0; i < n / 2; i++)
    if (str[i] != str[n - i - 1]) return 0;
  return 1;
}
int main() {
  char str[100010];
  while (gets(str)) {
    int len = strlen(str);
    int num = is_match(str);
    if (num == 0) {
      puts("NO");
      continue;
    }
    for (int i = 0; i < len; i++) {
      if (str[i] != 'A' && str[i] != 'H' && str[i] != 'I' && str[i] != 'M' &&
          str[i] != 'O' && str[i] != 'T' && str[i] != 'U' && str[i] != 'V' &&
          str[i] != 'W' && str[i] != 'X' && str[i] != 'Y') {
        puts("NO");
        return 0;
      }
    }
    printf("YES\n");
  }
  return 0;
}
