#include <bits/stdc++.h>
using namespace std;
char ary[] = {'A', 'H', 'I', 'M', 'O', 'T', 'U', 'V', 'W', 'X', 'Y'};
string st, ts;
int n;
bool found;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cin >> st;
  n = st.size();
  for (int i = 0; i < n; i++) {
    found = false;
    for (int j = 0; j < 11; j++)
      if (st[i] == ary[j]) found = true;
    if (!found) {
      cout << "NO"
           << "\n";
      return 0;
    }
  }
  ts = st;
  reverse(ts.begin(), ts.end());
  if (st == ts)
    cout << "YES"
         << "\n";
  else
    cout << "NO"
         << "\n";
  return 0;
}
