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