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