#include <bits/stdc++.h>
char x[10000005];
int main() {
  scanf("%s", x);
  int lenx = strlen(x);
  if (lenx % 2 != 0)
    printf("No\n");
  else {
    int i = 0, j = lenx - 1;
    while (i <= j) {
      if ((x[i] == 'b' && x[j] == 'd') || (x[i] == 'p' && x[j] == 'q') ||
          (x[i] == 'd' && x[j] == 'b') || (x[i] == 'b' && x[j] == 'd'))
        i++, j--;
      else {
        printf("No\n");
        return 0;
      }
    }
    printf("Yes\n");
  }
  return 0;
}
