#include <bits/stdc++.h>
using namespace std;
string s;
int ss[20000], sss[20000];
int main() {
  cin >> s;
  int a = s.size();
  for (int i = 0; i < a; i++) {
    if (s[i] == 'b') {
      ss[i] = 1;
      sss[a - i - 1] = 2;
    }
    if (s[i] == 'd') {
      ss[i] = 2;
      sss[a - i - 1] = 1;
    }
    if (s[i] == 'p') {
      ss[i] = 3;
      sss[a - i - 1] = 4;
    }
    if (s[i] == 'q') {
      ss[i] = 4;
      sss[a - i - 1] = 3;
    }
  }
  for (int i = 0; i < a; i++) {
    if (ss[i] != sss[i]) {
      cout << "No";
      return 0;
    }
  }
  cout << "Yes";
  return 0;
}
