#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
const double eps = 1e-4;
char t[] = "A000000HI000M0O0000TUVWXY0";
char s[100010];
int main() {
  while (cin >> s) {
    bool f = 0;
    int len = strlen(s);
    for (int i = 0; i <= len / 2; i++) {
      if (s[i] != s[len - i - 1] || t[s[i] - 'A'] != s[i]) {
        cout << "NO" << endl;
        f = 1;
        break;
      }
    }
    if (f == 0) cout << "YES" << endl;
  }
  return 0;
}
