#include <bits/stdc++.h>
using namespace std;
int main() {
  int c = 0;
  string s, str;
  cin >> s;
  str = s;
  reverse(str.begin(), str.end());
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == 'A' || s[i] == 'H' || s[i] == 'I' || s[i] == 'M' ||
        s[i] == 'O' || s[i] == 'T' || s[i] == 'U' || s[i] == 'W' ||
        s[i] == 'X' || s[i] == 'Y' || s[i] == 'V') {
      c++;
    }
  }
  if (str == s && c == s.size())
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
