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