#include <bits/stdc++.h>
using namespace std;
int main() {
  char s[100860];
  char zm[4] = {'d', 'b', 'q', 'p'};
  scanf("%s", &s);
  int n = strlen(s);
  if (n % 2 != 0) {
    cout << "No" << endl;
  } else {
    for (int i = 0; i <= n / 2 + 2; i++) {
      if ((s[i] == zm[1] && s[n - 1 - i] != zm[0]) ||
          (s[i] == zm[0] && s[n - 1 - i] != zm[1]) ||
          (s[i] == zm[3] && s[n - 1 - i] != zm[2]) ||
          (s[i] == zm[2] && s[n - 1 - i] != zm[3])) {
        cout << "No" << endl;
        return 0;
      }
    }
  }
  cout << "Yes" << endl;
  return 0;
}
