#include <bits/stdc++.h>
using namespace std;
int main() {
  freopen("/Users/noosc/Desktop/input.txt", "r", stdin);
  string S;
  cin >> S;
  string T = S;
  for (int i = 0; i < T.length(); ++i) {
    switch (T[i]) {
      case 'b':
        T[i] = 'd';
        break;
      case 'd':
        T[i] = 'b';
        break;
      case 'p':
        T[i] = 'q';
        break;
      case 'q':
        T[i] = 'p';
        break;
      default:
        break;
    }
  }
  for (int i = 0; i < S.length(); ++i) {
    if (S[i] != T[T.length() - 1 - i]) {
      cout << "No" << endl;
      return 0;
    }
  }
  cout << "Yes" << endl;
  return 0;
}
