#include <bits/stdc++.h>
using namespace std;
string s;
int main() {
  long long i, l, m, j;
  cin >> s;
  l = s.size();
  for (i = 0; s[i]; 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 {
      cout << "NO" << endl;
      return 0;
    }
  }
  m = l / 2;
  for (i = 0, j = l - 1; i < m; i++, j--) {
    if (s[i] != s[j]) {
      cout << "NO" << endl;
      return 0;
    }
  }
  cout << "YES" << endl;
}
