#include <bits/stdc++.h>
using namespace std;
char str[100001];
bool f(char c) {
  if (c == 'A' || c == 'H' || c == 'I' || c == 'M' || c == 'O' || c == 'T' ||
      c == 'U' || c == 'V' || c == 'W' || c == 'X' || c == 'Y')
    return true;
  return false;
}
int main() {
  int i, j;
  while (~scanf("%s", str)) {
    j = strlen(str);
    bool flag = false;
    for (i = 0; i <= strlen(str) / 2; i++)
      if (f(str[i]) == false || str[i] != str[j - 1 - i]) {
        flag = true;
        break;
      }
    if (flag)
      cout << "NO" << endl;
    else
      cout << "YES" << endl;
  }
  return 0;
}
