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