#include <bits/stdc++.h>
using namespace std;
const int mod = 1000000007;
const int MAX = 100005;
string ans = "AHIMOTUVWXY";
bool ok(string x) {
  for (int i = (0); i < ((int)x.size()); ++i) {
    bool ok = false;
    for (int j = (0); j < ((int)ans.size()); ++j)
      if (ans[j] == x[i]) ok = true;
    if (!ok) return false;
  }
  return true;
}
bool palindrome(string x) {
  string tmp = x;
  reverse(tmp.begin(), tmp.end());
  return x == tmp;
}
int main() {
  string st;
  cin >> st;
  if (ok(st) and palindrome(st))
    cout << "YES" << '\n';
  else
    cout << "NO" << '\n';
}
