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