#include <bits/stdc++.h>
using namespace std;
string st;
bool mirror(char x) {
  return (x == 'A' || x == 'H' || x == 'M' || x == 'O' || x == 'T' ||
          x == 'U' || x == 'V' || x == 'W' || x == 'X' || x == 'Y' || x == 'I');
}
bool check(string st) {
  for (int i = 0; i < st.size() / 2; i++) {
    if (st[i] != st[st.size() - 1 - i]) return false;
  }
  return true;
}
int main() {
  cin >> st;
  for (int i = 0; i < st.size(); i++) {
    if (!mirror(st[i])) {
      cout << "NO";
      return 0;
    }
  }
  cout << (check(st) ? "YES" : "NO");
  return 0;
}
