#include <bits/stdc++.h>
using namespace std;
string s;
int main() {
  getline(cin, s);
  int len = s.size();
  if (len % 2 == 1) {
    cout << "No";
    return 0;
  } else
    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";
        return 0;
      }
    }
  cout << "Yes";
  return 0;
}
