#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
int main() {
  string s;
  cin >> s;
  bool flag = true;
  int n = (int)s.size();
  for (int i = 0; i < (int)(n); ++i) {
    if (s[i] == 'b') flag &= s[n - 1 - i] == 'd';
    if (s[i] == 'p') flag &= s[n - 1 - i] == 'q';
  }
  if (flag) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
