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