#include <bits/stdc++.h>
using namespace std;
long long isPalindrome(string str) {
  long long l = 0;
  long long h = str.length() - 1;
  while (h > l) {
    if (str[l++] != str[h--]) {
      return -1;
    }
  }
  return 1;
}
int32_t main() {
  string s;
  cin >> s;
  long long n = s.size();
  string ans = "YES";
  for (long long i = 0; i < n; 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') {
    } else {
      ans = "NO";
    }
  }
  if (isPalindrome(s) == 1 && ans == "YES") {
    cout << ans << endl;
    ;
  } else {
    cout << "NO" << endl;
    ;
  }
}
