#include <bits/stdc++.h>
using namespace std;
char a[10001], b[10001];
int cc, flag = 1;
void jud(char a[], char b[]) {
  for (int i = 0; i < cc; i++) {
    if (a[i] != b[cc - i - 2]) {
      flag--;
      return;
    }
  }
}
int main() {
  while (~scanf("%c", &a[cc])) {
    cc++;
  }
  for (int i = 0; i < cc; i++) {
    if (a[i] == 'p') b[i] = 'q';
    if (a[i] == 'q') b[i] = 'p';
    if (a[i] == 'b') b[i] = 'd';
    if (a[i] == 'd') b[i] = 'b';
  }
  if (flag)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
