#include <bits/stdc++.h>
using namespace std;
int main() {
  string s, r = "AHIMOTUVWXY";
  cin >> s;
  int n = s.size(), i;
  for (i = 0; i < n; i++) {
    if (s[i] != s[n - i - 1]) {
      cout << "NO";
      return 0;
    }
    if (r.find(s[i]) > r.size()) {
      cout << "NO";
      return 0;
    }
  }
  cout << "YES";
  return 0;
}
