#include <bits/stdc++.h>
using namespace std;
int main() {
  string input, s = "AHYWOXMIUTV";
  cin >> input;
  if (input == string(input.rbegin(), input.rend())) {
    int count = 0;
    for (int j = 0; j < input.length(); j++) {
      for (int i = 0; i < s.length(); i++) {
        if (input[j] == s[i]) {
          count++;
          break;
        }
      }
    }
    if (count == input.length())
      cout << "YES";
    else
      cout << "NO";
  } else
    cout << "NO";
}
