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