#include <bits/stdc++.h>
char s[100007];
int ch[128], i = 1, l;
int main() {
  ch['p'] = 1, ch['d'] = 2, ch['q'] = 3;
  scanf("%s", s + 1);
  for (l = strlen(s + 1); i <= (l >> 1) + 1; ++i)
    if (ch[s[i]] ^ ((ch[s[l - i + 1]] + 2) % 4)) {
      printf("No\n");
      break;
    }
  printf("Yes\n");
  return 0;
}
