#include <bits/stdc++.h>
using namespace std;
char s[100010];
int main() {
  while (gets(s)) {
    int l = strlen(s), f = 1;
    ;
    for (int i = 0; i < (l + 1) / 2; i++) {
      if ((s[i] != 'A' && s[i] != 'H' && s[i] != 'I' && s[i] != 'O' &&
           s[i] != 'T' && s[i] != 'U' && s[i] != 'V' && s[i] != 'W' &&
           s[i] != 'X' && s[i] != 'Y' && s[i] != 'M') ||
          s[i] != s[l - i - 1]) {
        f = 0;
        break;
      }
    }
    if (f)
      puts("YES");
    else
      puts("NO");
  }
  return 0;
}
