#include <bits/stdc++.h>
using namespace std;
int main() {
  char a[10001];
  gets(a);
  int n = strlen(a);
  for (int i = 0; i < n / 2 - 1; i++) {
    if ((a[i] == 'b' && a[n - i - 1] == 'd') ||
        (a[i] == 'd' && a[n - i - 1] == 'b') ||
        (a[i] == 'q' && a[n - i - 1] == 'p') ||
        (a[i] == 'p' && a[n - i - 1] == 'q'))
      continue;
    cout << "No";
    return 0;
  }
  cout << "Yes";
  return 0;
}
