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