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