#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string reflect = "AHIMOTUVWXY";
  for (int i = 0; i < s.length(); i++) {
    if (!(reflect.find(s[i]) < reflect.length())) {
      cout << "NO";
      return 0;
    }
  }
  int flag = 0;
  int n = s.length();
  for (int i = 0; i <= n / 2; i++) {
    if (s[i] != s[n - i - 1]) {
      cout << "NO";
      return 0;
    }
  }
  cout << "YES";
  return 0;
}
