#include <bits/stdc++.h>
char a[100000 + 2];
char b[12] = {"AHIMOTUVWXY"};
int solve() {
  int len = strlen(a), k;
  for (int i = 0, j = len - 1; i <= j; i++, j--) {
    if (a[i] != a[j]) return 0;
    for (k = 0; k < 11; k++) {
      if (a[i] == b[k]) break;
    }
    if (k == 11) return 0;
  }
  return 1;
}
int main() {
  while (gets(a)) {
    int flag = solve();
    if (flag)
      printf("YES\n");
    else
      printf("NO\n");
  }
  return 0;
}
