#include <bits/stdc++.h>
using namespace std;
string s;
char ss[] = "QERPSDFGJKLZCBN";
bool solve() {
  for (int i = 0; i < s.size(); i++)
    for (int j = 0; j < 15; j++) {
      if (s[i] == ss[j]) return 0;
    }
  for (int i = 0; i < s.size() / 2; i++)
    if (s[i] != s[s.size() - i - 1]) return 0;
  return 1;
}
int main() {
  cin >> s;
  if (solve())
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
