#include <bits/stdc++.h>
using namespace std;
int main() {
  char s[100001];
  int a[100];
  memset(a, (0), sizeof a);
  a[65] = 1;
  a[72] = 1;
  a[73] = 1;
  a[77] = 1;
  a[79] = 1;
  a[84] = 1;
  a[85] = 1;
  a[86] = 1;
  a[87] = 1;
  a[88] = 1;
  a[89] = 1;
  gets(s);
  int len = strlen(s);
  bool isMirrorWord = true;
  for (int i = (0); i < (len / 2 + 1); i++) {
    if (s[i] != s[len - i - 1] || a[s[i]] == 0) {
      isMirrorWord = false;
      break;
    }
  }
  if (isMirrorWord) {
    printf("YES");
  } else {
    printf("NO");
  }
}
