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