#include <bits/stdc++.h>
using namespace std;
const double PI = acos(-1);
const double EPS = 1e-8;
const int inf = 1e8;
int main() {
  string s;
  cin >> s;
  int dp[300][300] = {0};
  dp['b']['d'] = dp['d']['b'] = dp['q']['p'] = dp['p']['q'] = 1;
  bool h = true;
  for (int i = 0; i < s.size() / 2; i++) {
    char a = s[i], b = s[s.size() - i - 1];
    if (dp[a][b] == 0) h = false;
  }
  if (h)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
