#include <bits/stdc++.h>
using namespace std;
bool ok(char letter) {
  if (letter == 'A' or letter == 'H' or letter == 'I' or letter == 'M' or
      letter == 'O' or letter == 'T' or letter == 'U' or letter == 'V' or
      letter == 'W' or letter == 'X' or letter == 'Y') {
    return true;
  } else {
    return false;
  }
}
int main() {
  string name;
  bool mirror = true;
  cin >> name;
  for (int i = 0; i < name.length(); i++) {
    if (ok(name.at(i)) == false) {
      cout << "NO" << endl;
      mirror = false;
      break;
    }
  }
  if (mirror == true) {
    for (int i = 0; i < name.length() / 2; i++) {
      if (name.at(i) != name.at(name.length() - i - 1)) {
        cout << "NO" << endl;
        mirror = false;
        break;
      }
    }
  }
  if (mirror == true) {
    cout << "YES" << endl;
  }
  return 0;
}
