#include <bits/stdc++.h>
void judge(char *);
void judge(char *s) {
  int i, j, flag = 1;
  int n = strlen(s);
  for (i = 0, j = n - 1; i < j; i++, j--) {
    if ((s[i] == 'p' && s[j] == 'q') || (s[i] == 'q' && s[j] == 'p') ||
        (s[i] == 'b' && s[j] == 'd') || (s[i] == 'd' && s[j] == 'b')) {
      continue;
    } else {
      flag = 0;
      break;
    }
  }
  printf((flag == 1) ? "Yes\n" : "No\n");
}
int main() {
  char a[100000 + 1] = {0};
  scanf("%s", a);
  judge(a);
  return 0;
}
