#include <bits/stdc++.h>
using namespace std;
char a[100000];
int main() {
  scanf("%s", a);
  long long size = strlen(a);
  long j;
  int fail = 0;
  for (long long i = 0; i < size / 2 + 1; ++i) {
    j = size - i - 1;
    if (a[i] != 'A' && a[i] != 'H' && a[i] != 'I' && a[i] != 'M' &&
        a[i] != 'O' && a[i] != 'T' && a[i] != 'U' && a[i] != 'V' &&
        a[i] != 'W' && a[i] != 'X' && a[i] != 'Y') {
      fail = 1;
      break;
    } else {
      if (a[i] != a[j]) {
        fail = 1;
        break;
      }
    }
  }
  if (!fail) {
    printf("YES\n");
  } else {
    printf("NO\n");
  }
}
