#include <bits/stdc++.h>
using namespace std;
int n;
char s[100111];
bool check(char c) {
  if (c == 'A') return true;
  if (c == 'H') return true;
  if (c == 'I') return true;
  if (c == 'M') return true;
  if (c == 'T') return true;
  if (c == 'U') return true;
  if (c == 'V') return true;
  if (c == 'W') return true;
  if (c == 'X') return true;
  if (c == 'Y') return true;
  if (c == 'O') return true;
  return false;
}
int main() {
  if (0 == 1) {
    freopen("input.txt", "r", stdin);
    freopen("output.txt", "w", stdout);
  }
  gets(s);
  n = strlen(s);
  int ans = true;
  for (int i = 0; i <= n - 1; i++) {
    if (!check(s[i])) {
      ans = false;
      break;
    }
    if (s[i] != s[n - 1 - i]) {
      ans = false;
      break;
    }
  }
  if (ans)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
