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