#include <bits/stdc++.h>
using namespace std;
char s[500100];
int main() {
  cin >> s;
  int k = strlen(s);
  int p = k / 2;
  bool gg = 0;
  for (int i = 0; i < p; i++) {
    int t = k - 1 - i;
    if ((s[i] == 'b' && s[t] == 'd') || (s[i] == 'q' && s[i] == 'p') ||
        (s[i] == 'd' && s[t] == 'b') || (s[i] == 'p' && s[i] == 'q')) {
      continue;
    }
    gg = 1;
    break;
  }
  if (gg == 1) {
    cout << "No" << endl;
  } else {
    cout << "Yes" << endl;
  }
  return 0;
}
