#include <bits/stdc++.h>
using namespace std;
string s, qwq;
int main() {
  cin >> s;
  qwq = s;
  reverse(qwq.begin(), qwq.end());
  for (int i = 0; i < s.size(); i++) {
    if (qwq[i] == 'p') qwq[i] = 'q';
    if (qwq[i] == 'q') qwq[i] = 'p';
    if (qwq[i] == 'd') qwq[i] = 'b';
    if (qwq[i] == 'b') qwq[i] = 'd';
  }
  if (qwq == s)
    printf("Yes");
  else
    printf("No");
  return 0;
}
