#include <bits/stdc++.h>
using namespace std;
bool goodiat(char ch) {
  return (ch == 'A' || ch == 'H' || ch == 'I' || ch == 'M' || ch == 'O' ||
          ch == 'T' || ch == 'U' || ch == 'V' || ch == 'W' || ch == 'X' ||
          ch == 'Y');
}
int main() {
  string s;
  cin >> s;
  for (int i = 0; i < (int)s.size(); i++)
    if (!goodiat(s[i])) {
      cout << "NO\n";
      return 0;
    }
  for (int i = 0; i < (int)s.size(); i++)
    if (s[i] != s[(int)s.size() - i - 1]) {
      cout << "NO\n";
      return 0;
    }
  cout << "YES\n";
  return 0;
}
