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