#include <bits/stdc++.h>
using namespace std;
stack<char> s;
string a;
int main() {
  cin >> a;
  int n = a.size();
  for (int i = 0; i < n; i++) {
    s.push(a[i]);
  }
  bool ju = 1;
  for (int i = 0; i < n; i++) {
    char top = s.top();
    s.pop();
    if (top == 'b')
      top = 'd';
    else if (top == 'd')
      top = 'b';
    else if (top == 'p')
      top = 'q';
    else if (top == 'q')
      top = 'p';
    if (top == a[i])
      ju = 1;
    else
      ju = 0;
  }
  if (ju == 0)
    printf("No\n");
  else
    printf("Yes\n");
  return 0;
}
