#include <bits/stdc++.h>
using namespace std;
const string st = "AHIMOTUVWXY";
string s;
int main() {
  ios::sync_with_stdio(0);
  cin >> s;
  int n = s.size();
  for (int i = 0; i <= n - 1; ++i)
    if (st.find(s[i], 0) == -1) {
      cout << "NO";
      return 0;
    }
  string s1 = s;
  reverse(s1.begin(), s1.end());
  if (s1 == s)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
