#include <bits/stdc++.h>
using namespace std;
int main() {
  bool ok[999];
  memset(ok, false, sizeof(ok));
  ok['A'] = true;
  ok['H'] = true;
  ok['I'] = true;
  ok['M'] = true;
  ok['O'] = true;
  ok['T'] = true;
  ok['U'] = true;
  ok['V'] = true;
  ok['W'] = true;
  ok['X'] = true;
  ok['Y'] = true;
  static char s[199919];
  scanf("%s", s + 1);
  int n = strlen(s + 1);
  bool flag = true;
  for (int i = 1, j = n; i <= j; ++i, --j)
    if (s[i] != s[j] || !ok[s[i]]) flag = false;
  printf("%s\n", flag ? "YES" : "NO");
  return 0;
}
