#include <bits/stdc++.h>
using namespace std;
const string mirror_alpha = "AHIMOTUVWXY";
int in(char ch, string sets) {
  for (int i = 0; i < sets.size(); i++)
    if (ch == sets[i]) return 1;
  return 0;
}
int judge(string txt) {
  int len = txt.size();
  for (int i = 0; i < len; i++)
    if (!in(txt[i], mirror_alpha)) return 0;
  int mid = 0;
  if (len % 2 != 0) {
    mid = len / 2;
    for (int i = 0; i < len / 2; i++)
      if (txt[mid + i] != txt[mid - i]) return 0;
    return 1;
  }
  for (int i = 0; i < len / 2; i++)
    if (txt[i] != txt[len - 1 - i]) return 0;
  return 1;
}
int main() {
  string txt;
  cin >> txt;
  if (judge(txt))
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
