#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  int n = s.length();
  char f[] = "AHIMOTUVWXY";
  for (int i = 0; i < n; i++) {
    int x = 0;
    for (int j = 0; j < 11; j++)
      if (s[i] == f[j]) {
        x = 1;
      }
    if (x) {
      x = 0;
    } else {
      cout << "NO";
      return 0;
    }
  }
  for (int i = 0; i < n; i++)
    if (s[i] != s[n - i - 1]) {
      cout << "NO";
      return 0;
    }
  cout << "YES";
  return 0;
}
