#include <bits/stdc++.h>
using namespace std;
char a[1000001], c[1000001];
int main() {
  int b, sum = 0, l = 0;
  cin >> a;
  b = strlen(a);
  for (int i = 0; i < b; i++) {
    c[sum] = a[i];
    if (c[sum] == 'b')
      c[sum] = 'd';
    else if (c[sum] == 'd')
      c[sum] = 'b';
    else if (c[sum] == 'p')
      c[sum] = 'q';
    else if (c[sum] == 'q')
      c[sum] = 'p';
    sum++;
  }
  for (int i = 0; i < b; i++) {
    if (a[i] != c[i]) {
      cout << "No" << endl;
      return 0;
    }
  }
  cout << "Yes" << endl;
  return 0;
}
