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