#include <bits/stdc++.h>
using namespace std;
string rev(string s) {
  if (s.size() == 1) {
    return s;
  } else {
    return rev(s.substr(1)) + s[0];
  }
}
int main() {
  string s;
  cin >> s;
  string sr = rev(s);
  string abc = "bdpq";
  string abc2 = "dbqp";
  for (int i = 0; i < sr.size(); i++) {
    for (int j = 0; j < 4; j++) {
      if (sr[i] == abc[j]) {
        sr[i] = abc2[j];
        break;
      }
    }
  }
  if (s == sr) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}
