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