#include <bits/stdc++.h>
using namespace std;
const int maxn = 100005;
const int INF = 0x3f3f3f3f;
bool judge(char c) {
  if (c == 'A' || c == 'H' || c == 'I' || c == 'M' || c == 'O' || c == 'T' ||
      c == 'V' || c == 'U' || c == 'W' || c == 'X' || c == 'Y')
    return true;
  return false;
}
int main() {
  char s[maxn];
  cin >> s;
  int i;
  int n = strlen(s);
  int flag = 1;
  for (i = 0; i < n; i++) {
    if (s[i] == s[n - i - 1] && judge(s[i]))
      continue;
    else {
      flag = 0;
      break;
    }
  }
  if (flag)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
