#include <bits/stdc++.h>
char l[10001], ll[1001];
using namespace std;
int main() {
  gets(l);
  int ans = 0, lll = strlen(l);
  for (int i = lll - 1; i >= 0; i--) {
    if (l[i] == 'b')
      ll[lll - 1 - i] = 'd';
    else if (l[i] == 'd')
      ll[lll - 1 - i] = 'b';
    else if (l[i] == 'p')
      ll[lll - 1 - i] = 'q';
    else if (l[i] == 'q')
      ll[lll - 1 - i] = 'p';
  }
  for (int i = 0; i < lll; i++) {
    if (l[i] == ll[i]) ans++;
  }
  if (ans == lll)
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
