#include <bits/stdc++.h>
using namespace std;
char s1[100100], s2[100100];
int leng;
int main() {
  cin >> s1;
  for (int i = strlen(s1) - 1; i >= 0; i--) s2[leng++] = s1[i];
  for (int i = 0; i < leng; i++) {
    if (s2[i] == 'b')
      s2[i] = 'd';
    else if (s2[i] == 'd')
      s2[i] = 'b';
    else if (s2[i] == 'p')
      s2[i] = 'q';
    else if (s2[i] == 'q')
      s2[i] = 'p';
  }
  if (strcmp(s1, s2) == 0)
    puts("Yes");
  else
    puts("No");
  return 0;
}
