#include <bits/stdc++.h>
using namespace ::std;
string mirlets = "AHIMOTUVWXY";
void solve() {
  string a;
  cin >> a;
  for (int i = 0; i < a.length() / 2; i++) {
    if (a[i] != a[a.length() - 1 - i]) {
      cout << "NO" << endl;
      return;
    }
  }
  for (auto i : a) {
    bool k = false;
    for (auto j : mirlets)
      if (i == j) {
        k = true;
      }
    if (!k) {
      cout << "NO" << endl;
      return;
    }
  }
  cout << "YES" << endl;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  solve();
  return 0;
}
