#include <bits/stdc++.h>
using namespace std;
char st[100000 + 123];
bool inm[256];
int main() {
  scanf("%s", st);
  memset(inm, 0, sizeof(inm));
  inm['A'] = true;
  inm['H'] = true;
  inm['I'] = true;
  inm['M'] = true;
  inm['O'] = true;
  inm['T'] = true;
  inm['U'] = true;
  inm['V'] = true;
  inm['W'] = true;
  inm['X'] = true;
  inm['Y'] = true;
  int r = strlen(st) - 1;
  int l = 0;
  bool flag = true;
  while (l <= r) {
    if (st[l] != st[r] || !inm[st[l]]) {
      flag = false;
      break;
    }
    l++;
    r--;
  }
  if (flag)
    puts("YES");
  else
    puts("NO");
  return 0;
}
