#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  cin >> str;
  int c = 0;
  for (int i = 0; i < str.length(); i++) {
    if (str[i] == 'A' || str[i] == 'H' || str[i] == 'I' || str[i] == 'M' ||
        str[i] == 'O' || str[i] == 'T' || str[i] == 'U' || str[i] == 'V' ||
        str[i] == 'W' || str[i] == 'Y' || str[i] == 'X')
      c++;
  }
  if (c == str.length()) {
    int n = str.length() - 1;
    bool b = 1;
    for (int i = 0; i < str.length(); i += 2) {
      if (str[i] != str[n - i]) {
        b = 0;
        break;
      }
    }
    if (b)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  } else
    cout << "NO" << endl;
  return 0;
}
