#include <bits/stdc++.h>
using namespace std;
const int maxl = 100010;
int l;
char str[maxl];
bool b;
int main() {
  scanf("%s", &str);
  l = strlen(str);
  for (int i = 0; i < l / 2; i++) {
    if (str[i] == 'b' && str[l - i] != 'd') {
      b = true;
      break;
    }
    if (str[i] == 'd' && str[l - i] != 'b') {
      b = true;
      break;
    }
    if (str[i] == 'p' && str[l - i] != 'q') {
      b = true;
      break;
    }
    if (str[i] == 'p' && str[l - i] != 'q') {
      b = true;
      break;
    }
  }
  if (b) {
    printf("No\n");
    return 0;
  }
  printf("Yes\n");
  return 0;
}
