#include <bits/stdc++.h>
using namespace std;
int main() {
  char a[10001];
  cin >> a;
  int n = strlen(a);
  for (int i = 0; i < n / 2 - 1; i++) {
    int x = a[i] + a[n - i - 1];
    if (x == 198 || x == 225 || x == 178) continue;
    cout << "No";
    return 0;
  }
  cout << "Yes";
  return 0;
}
