#include <bits/stdc++.h>
using namespace std;
int main() {
  string a, b = "AHIMOTUVWXY";
  cin >> a;
  for (int i = 0; i < a.size(); i++) {
    bool x = false;
    for (int j = 0; j < b.size(); j++)
      if (a[i] == b[j]) x = true;
    if (!x) return cout << "NO", 0;
  }
  for (int i = 0; i < a.size() / 2; i++)
    if (a[i] != a[a.size() - i - 1]) return cout << "NO", 0;
  return cout << "YES", 0;
}
