#include <bits/stdc++.h>
using namespace std;
int main() {
  int l, flag = 0, i, flag1 = 0;
  char str[100002];
  cin >> str;
  l = strlen(str);
  for (i = 0; str[i] != '\0'; i++) {
    if (str[i] == 'X' || str[i] == 'O' || str[i] == 'M' || str[i] == 'W' ||
        str[i] == 'H' || str[i] == 'A' || str[i] == 'I' || str[i] == 'T' ||
        str[i] == 'U' || str[i] == 'V' || str[i] == 'Y') {
      flag = 0;
    } else {
      flag = 1;
      break;
    }
  }
  if (flag == 1)
    cout << "NO" << endl;
  else {
    for (i = 0; i < l / 2; i++) {
      if (str[i] != str[l - 1 - i]) {
        flag1 = 1;
        break;
      }
    }
    if (flag1 == 1)
      cout << "NO" << endl;
    else
      cout << "YES" << endl;
  }
  return 0;
}
