#include <bits/stdc++.h>
using namespace std;
int ls;
char s[100100];
int main() {
  freopen("read.in", "r", stdin);
  scanf("%s", s);
  ls = strlen(s);
  for (int i = 0; i < ls; i++) {
    if ((s[i] == 'p' && s[ls - i - 1] == 'q') ||
        (s[i] == 'q' && s[ls - i - 1] == 'p') ||
        (s[i] == 'd' && s[ls - i - 1] == 'b') ||
        (s[i] == 'b' && s[ls - i - 1] == 'd'))
      continue;
    else {
      printf("No\n");
      return 0;
    }
  }
  printf("Yes\n");
  return 0;
}
