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