#include <bits/stdc++.h>
using namespace std;
char s[10086], k, b[10086];
int main() {
  int j = 0, t = 0;
  cin >> s;
  for (int i = strlen(s) - 1; i >= 0; i--) {
    if (s[i] == 'b') b[j] = 'd';
    if (s[i] == 'd') b[j] = 'b';
    if (s[i] == 'p') b[j] = 'q';
    if (s[i] == 'q') b[j] = 'p';
    j++;
  }
  for (int i = 0; i < strlen(s); i++) {
    if (s[i] != b[i]) {
      cout << "No" << endl;
      return 0;
    }
  }
  cout << "Yes" << endl;
  return 0;
}
