#include <bits/stdc++.h>
using namespace std;
char s[100010];
int main() {
  while (~scanf("%s", s)) {
    int len = strlen(s);
    bool flag = 1;
    for (int i = 0; i < len; ++i) {
      if (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')
        ;
      else {
        flag = 0;
        break;
      }
    }
    if (flag == 0)
      puts("NO");
    else {
      for (int i = 0; i < len; ++i)
        if (s[i] != s[len - 1 - i]) {
          flag = 0;
          break;
        }
      if (flag == 0)
        puts("NO");
      else
        puts("YES");
    }
  }
  return 0;
}
