#include <bits/stdc++.h>
using namespace std;
char str[100005];
char tmp[100005];
char j[] = {'A', 'H', 'I', 'M', 'O', 'T', 'U', 'V', 'W', 'X', 'Y'};
int find(char s) {
  for (int i = 0; i < 11; i++)
    if (j[i] == s) return i;
  return -1;
}
int main() {
  scanf("%s", str);
  int len = strlen(str);
  int cnt = 0;
  for (int i = len - 1; i >= 0; i--) tmp[cnt++] = str[i];
  tmp[cnt] = '\0';
  bool ans = true;
  for (int i = 0; i < len; i++) {
    if (tmp[i] == str[i] && find(tmp[i]) != -1)
      continue;
    else
      ans = false;
  }
  printf("%s\n", ans ? "YES" : "NO");
  return 0;
}
