#include <bits/stdc++.h>
using namespace std;
char sa[1000];
int i, n;
int main() {
  while ((sa[n] = getchar()) != '\n') n++;
  n--;
  while (sa[i] == 'p' && sa[n - i] == 'q') i++;
  while (sa[i] == 'b' && sa[n - i] == 'd') i++;
  while (sa[i] == 'd' && sa[n - i] == 'b') i++;
  while (sa[i] == 'q' && sa[n - i] == 'p') i++;
  if (i > n / 2)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
