#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == 'b') s[i] = 'd';
    if (s[i] == 'd') s[i] = 'b';
    if (s[i] == 'q') s[i] = 'p';
    if (s[i] == 'p') s[i] = 'q';
  }
  string tmp = s;
  reverse(s.begin(), s.end());
  if (s == tmp) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
