#include <bits/stdc++.h>
using namespace std;
int l;
char s[10001], c[10001];
int main() {
  cin >> s;
  l = strlen(s);
  for (int i = 0; i < l; i++) {
    c[i] = s[l - i - 1];
  }
  for (int i = 0; i < l; i++) {
    if (c[i] == 'q')
      c[i] = 'p';
    else if (c[i] == 'p')
      c[i] = 'q';
    else if (c[i] == 'b')
      c[i] = 'd';
    else if (c[i] == 'd')
      c[i] = 'b';
  }
  for (int i = 0; i < l; i++) {
    if (c[i] != s[i]) {
      cout << "No";
      break;
    }
    if (i == l - 1) cout << "Yes";
  }
  return 0;
}
