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