#include <bits/stdc++.h>
using namespace std;
int main() {
  string s = "AHIMOTUVWXY";
  set<char> ans;
  for (int i = 0; i < 11; i++) ans.insert(s[i]);
  cin >> s;
  int l = s.length();
  for (int i = 0; i < (l + 1) / 2; i++)
    if (s[i] != s[l - 1 - i] || ans.find(s[i]) == ans.end()) {
      cout << "NO\n";
      return 0;
    }
  cout << "YES\n";
  return 0;
}
