#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
const int INF = 1e9;
const long long INFF = 1e18;
int main(void) {
  string s;
  cin >> s;
  int l = 0, r = s.size() - 1;
  if (s.size() % 2 == 0) {
    printf("No\n");
    return 0;
  }
  bool f = true;
  while (r - l > 0) {
    if (!((s[l] == 'p' && s[r] == 'q') || (s[l] == 'q' && s[r] == 'p') ||
          (s[l] == 'b' && s[r] == 'd') || (s[l] == 'd' && s[r] == 'b'))) {
      f = false;
      break;
    }
    l++, r--;
  }
  if (f)
    printf("Yes\n");
  else
    printf("No\n");
  return 0;
}
