#include <bits/stdc++.h>
using namespace std;
void solve() {
  string s;
  cin >> s;
  string t = s;
  reverse(((t).begin()), ((t).end()));
  if (s != t)
    cout << "NO" << '\n';
  else {
    long long a = count(((s).begin()), ((s).end()), 'A');
    long long h = count(((s).begin()), ((s).end()), 'H');
    long long i = count(((s).begin()), ((s).end()), 'I');
    long long m = count(((s).begin()), ((s).end()), 'M');
    long long o = count(((s).begin()), ((s).end()), 'O');
    long long u = count(((s).begin()), ((s).end()), 'U');
    long long v = count(((s).begin()), ((s).end()), 'V');
    long long w = count(((s).begin()), ((s).end()), 'W');
    long long x = count(((s).begin()), ((s).end()), 'X');
    long long y = count(((s).begin()), ((s).end()), 'Y');
    long long t = count(((s).begin()), ((s).end()), 'T');
    if (a + h + i + m + o + u + v + w + x + y + t ==
        ((long long)((s).size()))) {
      cout << "YES" << '\n';
    } else
      cout << "NO" << '\n';
  }
}
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  long long testcases = 1;
  while (testcases--) {
    solve();
  }
  return 0;
}
