#include <bits/stdc++.h>
using namespace std;
int l;
char c[100000], s[100000];
int main() {
  gets(c);
  l = strlen(c);
  for (int i = 0; i < l; i++) {
    s[i] = c[l - i - 1];
    if (s[i] == 'b') s[i] == 'd';
    if (s[i] == 'd') s[i] == 'b';
    if (s[i] == 'p') s[i] == 'q';
    if (s[i] == 'q') s[i] == 'p';
  }
  if (s == c)
    printf("Yes");
  else
    printf("No");
  return 0;
}
