#include <bits/stdc++.h>
using namespace std;
bool check(char c) {
  if (c == 'A' || c == 'H' || c == 'I' || c == 'M' || c == 'O' || c == 'T' ||
      c == 'U' || c == 'V' || c == 'W' || c == 'X' || c == 'Y')
    return true;
  return false;
}
int main() {
  string s;
  cin >> s;
  bool fl = 0;
  for (int i = 0; i < (s.size() / 2); i++)
    if (s[i] != s[s.size() - i - 1] || !check(s[i])) {
      fl = 1;
      break;
    }
  if (!check(s[s.size() / 2])) fl = 1;
  if (fl == 0)
    cout << "YES";
  else
    cout << "NO";
  return 0;
}
