#include <bits/stdc++.h>
using namespace std;
char c[int(1e5) + 5];
int main(void) {
  cin >> (c + 1);
  int n = strlen(c + 1);
  for (int i = 1; i <= n; ++i)
    if (!(c[i] == 'A' || c[i] == 'H' || c[i] == 'I' || c[i] == 'M' ||
          c[i] == 'O' || c[i] == 'T' || c[i] == 'U' || c[i] == 'V' ||
          c[i] == 'W' || c[i] == 'X' || c[i] == 'Y'))
      return cout << "NO\n", 0;
  for (int i = 1; i <= n / 2; ++i)
    if (c[i] != c[n - i + 1]) return cout << "NO\n", 0;
  return cout << "YES\n", 0;
}
