#include <bits/stdc++.h>
char str[200000];
int main() {
  while (scanf("%s", str) != EOF) {
    int flag = 1;
    int len = strlen(str);
    for (int i = 0; i < len; i++) {
      if (str[i] == 'A' || str[i] == 'H' || str[i] == 'I' || str[i] == 'M' ||
          str[i] == 'O' || str[i] == 'T' || str[i] == 'U' || str[i] == 'V' ||
          str[i] == 'W' || str[i] == 'X' || str[i] == 'Y')
        continue;
      else
        flag = 0;
    }
    if (flag == 0) {
      printf("NO\n");
      continue;
    }
    for (int i = len - 1; i >= 0; i--) str[i + 1] = str[i];
    if (len % 2 == 0) {
      for (int i = len / 2, j = len / 2 + 1; i >= 1, j <= len; i--, j++) {
        if (str[i] != str[j]) {
          flag = 0;
          break;
        }
      }
      if (flag == 0)
        printf("NO\n");
      else
        printf("YES\n");
    } else {
      if (str[len / 2 + 1] == 'A' || str[len / 2 + 1] == 'H' ||
          str[len / 2 + 1] == 'I' || str[len / 2 + 1] == 'M' ||
          str[len / 2 + 1] == 'O' || str[len / 2 + 1] == 'T' ||
          str[len / 2 + 1] == 'U' || str[len / 2 + 1] == 'V' ||
          str[len / 2 + 1] == 'W' || str[len / 2 + 1] == 'X' ||
          str[len / 2 + 1] == 'Y') {
        for (int i = len / 2, j = len / 2 + 2; i >= 1, j <= len; i--, j++) {
          if (str[i] != str[j]) {
            flag = 0;
            break;
          }
        }
        if (flag == 0)
          printf("NO\n");
        else
          printf("YES\n");
      } else
        printf("NO\n");
    }
  }
  return 0;
}
