#include <bits/stdc++.h>
using namespace std;
int main() {
  char str[100000];
  bool flag;
  int l, mid, i;
  cin >> str;
  l = strlen(str) - 1;
  i = 0;
  flag = true;
  while (true) {
    if ((str[i] != 'A') && (str[i] != 'H') && (str[i] != 'I') &&
        (str[i] != 'M') && (str[i] != 'O') && (str[i] != 'T') &&
        (str[i] != 'U') && (str[i] != 'V') && (str[i] != 'W') &&
        (str[i] != 'X') && (str[i] != 'Y') && (str[l] != 'A') &&
        (str[l] != 'H') && (str[l] != 'I') && (str[l] != 'M') &&
        (str[l] != 'O') && (str[l] != 'T') && (str[l] != 'U') &&
        (str[l] != 'V') && (str[l] != 'W') && (str[l] != 'X') &&
        (str[l] != 'Y')) {
      flag = false;
      break;
    }
    if (str[i] != str[l]) {
      flag = false;
      break;
    }
    if ((l - i) <= 1) break;
    i++;
    l--;
  }
  if (flag)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
