#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, n;
  char str[100005];
  gets(str);
  n = strlen(str);
  for (i = 0, j = n - 1; i < n / 2; i++, j--) {
    if (str[i] != str[j]) {
      cout << "NO";
      return 0;
    }
  }
  for (i = 0; str[i]; i++) {
    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') {
      cout << "NO";
      return 0;
    }
  }
  cout << "YES";
}
