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