#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  cin >> str;
  set<char> c;
  c.insert('A');
  c.insert('H');
  c.insert('I');
  c.insert('M');
  c.insert('T');
  c.insert('O');
  c.insert('U');
  c.insert('V');
  c.insert('W');
  c.insert('X');
  c.insert('Y');
  for (int i = 0; i < str.size() / 2; i++) {
    if (str[i] != str[str.size() - i - 1]) {
      cout << "NO";
      return 0;
    } else {
      if (c.count(str[i]) == 0) {
        cout << "NO";
        return 0;
      }
    }
  }
  if (str.size() % 2 == 1) {
    if (c.count(str[str.size() / 2]) == 0) {
      cout << "NO";
      return 0;
    }
  }
  cout << "YES";
  return 0;
}
