#include <bits/stdc++.h>
using namespace std;
string st;
char b[500];
int main() {
  cin >> st;
  b['b'] = 'd';
  b['d'] = 'b';
  b['p'] = 'q';
  b['q'] = 'b';
  for (int i = 0; i < st.size(); i++)
    if (b[i] != b[st.size() - 1 - i]) {
      cout << "No" << endl;
      return 0;
    }
  cout << "Yes" << endl;
  return 0;
}
