#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, ss, t = "AHIMOTUVWXY";
  cin >> s;
  ss = s;
  reverse(ss.begin(), ss.end());
  if (ss != s) {
    cout << "NO\n";
    return 0;
  }
  for (int i = 0; i < s.size(); i++) {
    int f = 0;
    for (int j = 0; j < t.size(); j++) {
      if (s[i] == t[j]) f = 1;
    }
    if (!f) {
      cout << "NO\n";
      return 0;
    }
  }
  cout << "YES\n";
  return 0;
}
