#include <bits/stdc++.h>
char s[100050];
int main(void) {
  fgets(s, 100050, stdin);
  int len = strlen(s), flag = 1;
  char *p = s, *q = s + len - 2;
  while (p < q && flag) {
    if (*q == 'b') {
      if (*p != 'd') flag = 0;
    } else if (*q == 'd') {
      if (*p != 'b') flag = 0;
    } else if (*q == 'p') {
      if (*p != 'q') flag = 0;
    } else if (*q == 'q') {
      if (*p != 'p') flag = 0;
    } else {
      if (*p != *q) flag = 0;
    }
    p++;
    q--;
  }
  puts(flag ? "Yes" : "No");
  return 0;
}
