#include <bits/stdc++.h>
using namespace std;
string s;
int main() {
  getline(cin, s);
  int len = s.size();
  if (len % 2 == 1) {
    cout << "No";
    cout << endl;
    return 0;
  }
  for (int i = 0, j = len; i <= len, j >= 0; i++, j--) {
    if (((s[i] != 'b' && s[j] != 'd') || (s[i] != 'd' && s[j] != 'b')) ||
        ((s[i] != 'p' && s[j] != 'q') || (s[i] != 'q' && s[j] != 'p'))) {
      cout << "No";
      cout << endl;
      return 0;
    }
  }
  cout << "Yes";
  cout << endl;
  return 0;
}
