#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  char allowed[] = {'A', 'H', 'I', 'M', 'O', 'T', 'U', 'V', 'W', 'X', 'Y'};
  bool mirror = true, isthere = false;
  for (int i = 0; i <= s.length() / 2; i++) {
    mirror = true;
    isthere = false;
    if (s[i] != s[s.length() - i - 1]) {
      mirror = false;
      break;
    }
    for (int j = 0; j < 11; j++) {
      if (s[i] == allowed[j]) {
        isthere = true;
        break;
      }
    }
    if (!isthere) {
      mirror = false;
      break;
    }
  }
  cout << (mirror ? "YES" : "NO");
  return 0;
}
