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