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