#include <bits/stdc++.h>
int main() {
  std::string name;
  std::cin >> name;
  bool fail = false;
  for (int i = 0, j = name.size() - 1; i < name.size(); i++, j--) {
    if (name[i] == 'B' || name[i] == 'C' || name[i] == 'D' || name[i] == 'E' ||
        name[i] == 'F' || name[i] == 'G' || name[i] == 'J' || name[i] == 'K' ||
        name[i] == 'L' || name[i] == 'N' || name[i] == 'P' || name[i] == 'Q' ||
        name[i] == 'R' || name[i] == 'S' || name[i] == 'Z') {
      fail = true;
      break;
    }
    if (name[i] != name[j]) {
      fail = true;
      break;
    }
    if (i == j) break;
  }
  if (!fail)
    std::cout << "YES";
  else
    std::cout << "NO";
  return 0;
}
