#include <bits/stdc++.h>
using namespace std;
int main() {
  char a[100005];
  int i, sum = 0;
  cin >> a;
  for (i = 0; i < strlen(a) / 2; i++)
    if ((a[i] == 'p' && a[strlen(a) - 1 - i] == 'q') ||
        (a[i] == 'q' && a[strlen(a) - 1 - i] == 'p') ||
        (a[i] == 'b' && a[strlen(a) - 1 - i] == 'd') ||
        (a[i] == 'd' && a[strlen(a) - 1 - i] == 'b'))
      sum += 1;
  if (sum == strlen(a) / 2)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
