#include <bits/stdc++.h>
using namespace std;
string s;
int ans;
const int INF = 10e9;
int main() {
  ios_base::sync_with_stdio(false);
  cin >> s;
  string b = s;
  reverse(s.begin(), s.end());
  if (s != b) {
    cout << "NO";
    return 0;
  }
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == 'H' || s[i] == 'X' || s[i] == 'Y' || s[i] == 'W' ||
        s[i] == 'T' || s[i] == 'U' || s[i] == 'I' || s[i] == 'O' ||
        s[i] == 'A' || s[i] == 'V' || s[i] == 'M') {
      ans++;
    }
  }
  if (ans == s.size() && s == b) {
    cout << "YES";
    return 0;
  }
  cout << "NO";
}
