#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  char arr[] = {'A', 'H', 'I', 'M', 'O', 'T', 'U', 'V', 'W', 'X', 'Y'};
  bool hash[30];
  for (int i = 0; i < sizeof(arr); i++) {
    hash[arr[i] - 'A']++;
  }
  char str[100010];
  cin >> str;
  int l = strlen(str);
  bool f = 0;
  for (int i = 0; i < l; i++) {
    if (hash[str[i] - 'A'] == 0) {
      f = 1;
      break;
    }
  }
  if (f == 0) {
    bool check = 0;
    for (int i = 0; i <= (l - 1) / 2; i++) {
      if (str[i] != str[l - i - 1]) {
        check = 1;
        break;
      }
    }
    if (check == 0)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  } else
    cout << "NO" << endl;
  return 0;
}
