#include <bits/stdc++.h>
using namespace std;
const int size = 107;
const long long modulo = 1000000007;
const long long INF = 1e18;
const double EPS = 1e-8;
const double PI = acos(-1.0);
char mir[] = "AIHMOTUWVXY";
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  string s;
  cin >> s;
  bool ok = true;
  int n = s.size();
  for (int i = 0; i < s.size() / 2; i++)
    if (s[i] != s[n - i - 1]) ok = false;
  set<char> mirror;
  for (int i = 0; i < 11; i++) mirror.insert(mir[i]);
  for (int i = 0; i < s.size(); i++)
    if (mirror.count(s[i]) == 0) ok = false;
  cout << (ok ? "YES\n" : "NO\n");
  return 0;
}
