#include <bits/stdc++.h>
using namespace std;
signed main(void) {
  string s;
  int n;
  bool ok;
  cin >> s;
  n = s.size();
  ok = true;
  for (int i = 0; i < (n / 2); i++) {
    if (s[i] == 'p') {
      if (s[n - 1 - i] != 'q') ok = false;
    } else if (s[i] == 'q') {
      if (s[n - 1 - i] != 'p') ok = false;
    } else if (s[i] == 'b') {
      if (s[n - 1 - i] != 'd') ok = false;
    } else if (s[i] == 'd') {
      if (s[n - 1 - i] != 'b') ok = false;
    }
  }
  if (ok && n > 1)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
