#include <bits/stdc++.h>
using namespace std;
bool ok[300];
int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(0);
  string str = "AHIMOTUVWXY";
  for (int i = 0; i < int(str.size()); ++i) ok[str[i]] = true;
  cin >> str;
  bool ans = true;
  const int n = str.size();
  for (int i = 0; i < n; ++i) ans &= ok[str[i]] && (str[i] == str[n - 1 - i]);
  cout << (ans ? "YES" : "NO") << endl;
  return 0;
}
