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