#include <bits/stdc++.h>
using namespace std;
mt19937_64 rang(
    chrono::high_resolution_clock::now().time_since_epoch().count());
void solve() {
  string s;
  cin >> s;
  string ans = s;
  reverse(ans.begin(), ans.end());
  unordered_set<char> ss = {'A', 'H', 'I', 'M', 'O', 'T',
                            'U', 'V', 'W', 'X', 'Y'};
  if (ans != s) {
    cout << "NO" << endl;
    return;
  }
  for (int i = 0; i < s.size(); i++) {
    char c = s[i];
    if (!ss.count(c)) {
      cout << "NO" << endl;
      return;
    }
  }
  cout << "YES" << endl;
  return;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
