#include <bits/stdc++.h>
const int N_MAX = (int)(1e5);
const char ALPHA[] = "AHIMOTUVWXY";
char s[N_MAX + 1];
std::set<char> set;
bool check() {
  int n = strlen(s);
  for (int i = 0; i < n; ++i) {
    if (!set.count(s[i])) {
      return false;
    }
  }
  for (int i = 0; i < n; ++i) {
    if (s[i] != s[n - 1 - i]) {
      return false;
    }
  }
  return true;
}
int main() {
  for (int i = 0; i < strlen(ALPHA); ++i) {
    set.insert(ALPHA[i]);
  }
  scanf("%s", s);
  puts(check() ? "YES" : "NO");
  return 0;
}
