#include <bits/stdc++.h>
using namespace std;
using namespace chrono;
template <class T1, class T2>
istream &operator>>(istream &in, pair<T1, T2> &P) {
  in >> P.first >> P.second;
  return in;
}
template <class T1, class T2>
ostream &operator<<(ostream &out, pair<T1, T2> &P) {
  out << "(" << P.first << ", " << P.second << ")";
  return out;
}
template <class T>
istream &operator>>(istream &in, vector<T> &arr) {
  for (auto &x : arr) in >> x;
  return in;
}
template <class T>
ostream &operator<<(ostream &out, vector<T> &arr) {
  for (auto &x : arr) out << x << ' ';
  cout << "\n";
  return out;
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  string s;
  cin >> s;
  string c = s;
  reverse(c.begin(), c.end());
  if (s == c && all_of(s.begin(), s.end(), [](char x) {
        return x == 'A' || x == 'H' || x == 'I' || x == 'M' || x == 'O' ||
               x >= 'T' && x <= 'Y';
      })) {
    cout << "YES";
  } else {
    cout << "NO";
  }
  return 0;
}
