#include <bits/stdc++.h>
using namespace std;
int main() {
  string word;
  bool a = true;
  cin >> word;
  int j = word.size() - 1;
  for (int i = 0; i < word.size() / 2; i++) {
    if (word[i] != word[j]) {
      a = false;
      break;
    } else if (word[i] == word[j] &&
               (word[i] != 'A' && word[i] != 'H' && word[i] != 'I' &&
                word[i] != 'M' && word[i] != 'O' && word[i] != 'T' &&
                word[i] != 'U' && word[i] != 'V' && word[i] != 'W' &&
                word[i] != 'X' && word[i] != 'Y')) {
      a = false;
      break;
    }
    j--;
  }
  int i = word.size() / 2;
  if (word.size() % 2 != 0 &&
      (word[i] != 'A' && word[i] != 'H' && word[i] != 'I' && word[i] != 'M' &&
       word[i] != 'O' && word[i] != 'T' && word[i] != 'U' && word[i] != 'V' &&
       word[i] != 'W' && word[i] != 'X' && word[i] != 'Y')) {
    a = false;
  }
  if (a)
    cout << "YES";
  else
    cout << "NO";
}
