#include <bits/stdc++.h>
using namespace std;
char a[2000000], b[2000000], a1 = 0;
int main() {
  while (cin >> a[a1] && a[a1] != EOF) a1++;
  int len = a1;
  for (int i = 0; i <= len; i++) {
    if (a[i] == 'b') b[i] = 'd';
    if (a[i] == 'd') b[i] = 'b';
    if (a[i] == 'p') b[i] = 'q';
    if (a[i] == 'q') b[i] = 'p';
  }
  bool flag = true;
  for (int i = 0; i <= len; i++) {
    if (a[i] != b[len - i]) {
      cout << "No" << endl;
      return 0;
    }
  }
  cout << "Yes" << endl;
  return 0;
}
