#include <bits/stdc++.h>
using namespace std;
char x[200000], y[200000];
int main() {
  int k = 0;
  cin >> x;
  int l = strlen(x);
  for (int i = 0; i < l; i++) {
    y[i] = x[l - 1 - i];
  }
  for (int i = 0; i < l; i++) {
    if (y[i] == 'b')
      y[i] = 'd';
    else if (y[i] == 'b')
      y[i] = 'b';
    else if (y[i] == 'p')
      y[i] = 'q';
    else if (y[i] == 'q')
      y[i] = 'p';
  }
  for (int i = 0; i < l; i++) {
    if (x[i] != y[i]) {
      k++;
    }
  }
  if (k)
    cout << "No" << endl;
  else
    cout << "Yes" << endl;
  return 0;
}
