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