#include <bits/stdc++.h>
using namespace std;
int main() {
  string S1, S2;
  cin >> S1;
  S2 = S1;
  reverse(S1.begin(), S2.end());
  bool ans = true;
  for (int i = 0; i < S1.size(); i++) {
    if ((S1[i] == 'b' && S2[i] != 'd') && (S1[i] == 'd' && S2[i] != 'b') &&
        (S1[i] == 'p' && S2[i] != 'q') && (S1[i] == 'q' && S2[i] != 'p')) {
      ans = false;
      break;
    }
  }
  cout << (ans ? "Yes" : "No") << endl;
  return 0;
}
