#include <bits/stdc++.h>
using namespace std;
int main(int argc, const char* argv[]) {
  string s;
  cin >> s;
  int c = 0, d = 0;
  for (int i = 0; i < s.length() / 2; i++) {
    if (s[i] != s[s.length() - 1 - i]) c++;
  }
  for (int i = 0; i < s.length(); 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')
      d++;
  }
  if (c == 0 && d == s.length())
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
