#include <bits/stdc++.h>
using namespace std;
char a[100000], b[100000];
int main() {
  scanf("%s", &a);
  for (int i = 0; i < strlen(a); i++) {
    if (a[i] == 'b') b[strlen(a) - i - 1] = 'd';
    if (a[i] == 'd') b[strlen(a) - i - 1] = 'b';
    if (a[i] == 'p') b[strlen(a) - i - 1] = 'q';
    if (a[i] == 'q') b[strlen(a) - i - 1] = 'p';
  }
  if (strcmp(a, b) == 0)
    cout << "Yes\n";
  else
    cout << "No\n";
  return 0;
}
