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