#include <bits/stdc++.h>
using namespace std;
template <typename T>
inline istream& operator>>(istream& is, vector<T>& v) {
  for (auto& e : v) {
    cin >> e;
  }
  return is;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  string s;
  cin >> s;
  string k = "AHIMOTUVWXY";
  bool p = true;
  for (int i = 0; i < static_cast<int>(s.length()); ++i)
    p &= ((s[i] == s[s.length() - 1 - i]) &&
          (find(begin(k), end(k), s[i]) != end(k)));
  if (p) {
    cout << "YES";
  } else {
    cout << "NO";
  }
  return 0;
}
