#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
const int inf = 1e9;
const long long INF = 1e18;
const double pi = 3.14159265358979323846;
int main() {
  string s;
  cin >> s;
  int l = s.size();
  bool chk = 0;
  for (int i = 0; i < l / 2; i++) {
    if (s[i] == 'd' && s[l - i - 1] == 'b')
      chk = 1;
    else if (s[i] == 'b' && s[l - i - 1] == 'd')
      chk = 1;
    else if (s[i] == 'q' && s[l - i - 1] == 'p')
      chk = 1;
    else if (s[i] == 'p' && s[l - i - 1] == 'q')
      chk = 1;
    else {
      chk = 0;
      break;
    }
  }
  if (chk)
    cout << "Yes"
         << "\n";
  else
    cout << "No"
         << "\n";
}
