#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string s1;
  s1 = s;
  reverse(s.begin(), s.end());
  long int i;
  if (s1 == s) {
    for (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')
        continue;
      else
        break;
    }
    if (i == s.length())
      printf("YES");
    else
      printf("NO");
  } else
    cout << "NO";
  return 0;
}
