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