#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, p;
  int m = 0, l;
  cin >> s;
  l = s.size();
  p = s;
  reverse(p.begin(), p.end());
  if (p == s) {
    for (int i = 0; i < l; 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') {
        m = 0;
      } else {
        m = 1;
        cout << "NO" << endl;
        break;
      }
    }
    if (m == 0) cout << "YES" << endl;
  } else
    cout << "NO" << endl;
}
