#include <bits/stdc++.h>
using namespace std;
bool yes[1005];
char st[100005];
int main() {
  scanf("%s", st + 1);
  memset(yes, false, sizeof(yes));
  yes['A'] = yes['H'] = yes['I'] = yes['M'] = yes['O'] = yes['T'] = yes['U'] =
      yes['V'] = yes['W'] = yes['X'] = yes['Y'] = true;
  int N = strlen(st + 1);
  for (int i = 1; i <= N; i++)
    if (!yes[st[i]]) {
      printf("NO\n");
      return 0;
    }
  for (int i = 1; i <= N; i++)
    if (st[N - i + 1] != st[i]) {
      printf("NO\n");
      return 0;
    }
  printf("YES\n");
  return 0;
}
