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