#include <bits/stdc++.h>
using namespace std;
string arr;
int str[1005];
int main() {
  cin >> arr;
  str['A'] = 1;
  str['H'] = 1;
  str['I'] = 1;
  str['M'] = 1;
  str['O'] = 1;
  str['T'] = 1;
  str['U'] = 1;
  str['V'] = 1;
  str['W'] = 1;
  str['X'] = 1;
  str['Y'] = 1;
  int i, j;
  for (i = 0, j = arr.size() - 1; i < arr.size() and j >= 0; i++, j--) {
    if (arr[i] == arr[j] and str[arr[i]] and str[arr[j]]) {
    } else {
      cout << "NO";
      return 0;
    }
  }
  cout << "YES";
  return 0;
}
