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