#include <bits/stdc++.h>
using namespace std;
bool a[1000];
char s1[110000];
int main() {
  int t;
  memset(a, false, sizeof(a));
  a['A'] = true;
  a['H'] = true;
  a['I'] = true;
  a['M'] = true;
  a['O'] = true;
  a['T'] = true;
  a['U'] = true;
  a['V'] = true;
  a['W'] = true;
  a['X'] = true;
  a['Y'] = true;
  while (scanf("%s", s1) != EOF) {
    int l = strlen(s1);
    bool ch = true;
    for (int i = 0; i <= l - 1; i++) {
      if (!a[s1[i]]) {
        ch = false;
        break;
      }
    }
    if (!ch) {
      printf("NO\n");
      continue;
    }
    for (int i = 0; i <= l - 1; i++) {
      if (s1[i] != s1[l - 1 - i]) {
        ch = false;
        break;
      }
    }
    if (!ch) {
      printf("NO\n");
    } else {
      printf("YES\n");
    }
  }
  return 0;
}
