#include <bits/stdc++.h>
char na[100010], mi[100010];
int ok(char c) {
  switch (c) {
    case 'A':
    case 'H':
    case 'I':
    case 'M':
    case 'O':
    case 'T':
    case 'U':
    case 'V':
    case 'W':
    case 'X':
    case 'Y':
      return 1;
    default:
      return 0;
  }
}
int main() {
  scanf("%s", na);
  int i, l = strlen(na);
  for (i = 0; i < l; ++i)
    if (!ok(na[i])) {
      puts("NO");
      return 0;
    } else
      mi[i] = na[l - 1 - i];
  printf("%s\n", strcmp(na, mi) == 0 ? "YES" : "NO");
  return 0;
}
