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