#include <bits/stdc++.h>
using namespace std;
int len;
bool flag = true;
string s1, s2;
int main() {
  cin >> s1;
  len = s1.length();
  for (int i = 0; i < len - 1; i++) {
    s2[i] = s1[len - i - 1];
    if (s2[i] == 'b') {
      s2[i] = 'd';
      continue;
    }
    if (s2[i] == 'd') {
      s2[i] = 'b';
      continue;
    }
    if (s2[i] == 'p') {
      s2[i] = 'q';
      continue;
    }
    if (s2[i] == 'q') {
      s2[i] = 'p';
      continue;
    }
  }
  for (int i = 0; i < len; i++) {
    if (s1[i] != s2[i]) {
      flag = false;
      break;
    }
  }
  if (flag)
    printf("Yes");
  else
    printf("No");
  return 0;
}
