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