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