#include <bits/stdc++.h>
using namespace std;
string s, M = "AHIMOTUVWXY";
int main() {
  cin >> s;
  for (auto i : s) {
    if (M.find(i) == string::npos) {
      return cout << "NO", 0;
    }
  }
  puts(equal(begin(s), end(s), s.rbegin()) ? "YES" : "NO");
}
