#include <bits/stdc++.h>
int is_polindrom(char s[100001]) {
  int i;
  int n = strlen(s);
  for (i = 0; ((i <= n / 2) && (s[n - 1 - i] == s[i])); i++)
    ;
  return i - 1 == n / 2;
}
int is_el_in_arr(char *a, int n, char x) {
  int i = 0;
  while (i < n && x != a[i]) i++;
  return i != n;
}
int check_word(char *w, char *s) {
  int n = strlen(w);
  int i;
  for (i = 0; (i < n) && (is_el_in_arr(s, strlen(s), w[i])); i++)
    ;
  return i == n;
}
int main() {
  char s[] = {"AHIMOTUVWXY"};
  char w[100001];
  scanf("%s", w);
  if (is_polindrom(w) && (check_word(w, s)))
    printf("YES\n");
  else
    printf("NO\n");
  return 0;
}
