#include <bits/stdc++.h>
using namespace std;
char st[100001] = {0};
int l, l1;
int main() {
  scanf("%s", st);
  bool bo = true;
  l = strlen(st);
  l1 = l / 2;
  bool bo1 = true;
  for (int i = 0; i < l1; i++)
    if (st[i] != st[l - 1 - i]) {
      bo1 = false;
      break;
    }
  if (bo1 == false) {
    printf("NO");
    return 0;
  }
  for (int i = 0; i < l; i++)
    if (st[i] != 'A' && st[i] != 'H' && st[i] != 'I' && st[i] != 'M' &&
        st[i] != 'O' && st[i] != 'T' && st[i] != 'U' && st[i] != 'V' &&
        st[i] != 'W' && st[i] != 'X' && st[i] != 'Y') {
      bo = false;
      break;
    }
  if (bo == true)
    printf("YES");
  else
    printf("NO");
  return 0;
}
