#include <bits/stdc++.h>
using namespace std;
int main() {
  srand((unsigned int)time(NULL));
  map<char, char> ma;
  ma['A'] = 'A';
  ma['H'] = 'H';
  ma['I'] = 'I';
  ma['M'] = 'M';
  ma['O'] = 'O';
  ma['T'] = 'T';
  ma['U'] = 'U';
  ma['V'] = 'V';
  ma['W'] = 'W';
  ma['X'] = 'X';
  ma['Y'] = 'Y';
  string s;
  cin >> s;
  string t = "";
  for (int i = s.size() - 1; i >= 0; i--) {
    if (ma.find(s[i]) == ma.end())
      t.push_back('.');
    else
      t.push_back(ma[s[i]]);
  }
  puts(s == t ? "YES" : "NO");
}
