#include <bits/stdc++.h>
using namespace std;
bool okay[255];
char s[100005];
int main() {
  int n;
  scanf("%s", s);
  n = strlen(s);
  okay['A'] = 1;
  okay['H'] = 1;
  okay['I'] = 1;
  okay['M'] = 1;
  okay['O'] = 1;
  okay['T'] = 1;
  okay['U'] = 1;
  okay['V'] = 1;
  okay['W'] = 1;
  okay['X'] = 1;
  okay['Y'] = 1;
  int i;
  for (i = 0; i < n; ++i) {
    if (!okay[s[i]] || s[i] != s[n - 1 - i]) break;
  }
  if (i == n)
    puts("YES");
  else
    puts("NO");
  return 0;
}
