#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, t;
  bool z = false;
  cin >> s;
  t = s;
  reverse(s.begin(), s.end());
  if (t == s)
    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] == 'V' ||
          s[i] == 'W' || s[i] == 'X' || s[i] == 'Y')
        z = true;
      else {
        z = false;
        break;
      }
    }
  if (z == true)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
