#include <bits/stdc++.h>
using namespace std;
char p[100100];
char a[11] = {'W', 'Y', 'X', 'V', 'U', 'A', 'H', 'I', 'M', 'O', 'T'};
bool check(char ch) {
  int i;
  for (i = 0; i < 11; i++)
    if (ch == a[i]) return true;
  return false;
}
int main() {
  scanf("%s", p);
  int len = strlen(p);
  int i = 0, j = len - 1;
  int flag = 0;
  while (i <= j) {
    if (p[i] == p[j] && check(p[i])) {
      i++, j--;
    } else {
      flag = 1;
      break;
    }
  }
  if (flag == 0)
    printf("YES\n");
  else
    printf("NO\n");
}
