#include <bits/stdc++.h>
using namespace std;
string s, s1;
int main() {
  getline(cin, s);
  int len = s.size(), m = -1;
  for (int i = len - 1; i >= 0; i--) {
    s1[++m] = s[i];
    if (s1[m] == 'b')
      s1[m] = 'd';
    else if (s1[m] == 'd')
      s1[m] = 'b';
    else if (s1[m] == 'p')
      s1[m] = 'q';
    else if (s1[m] == 'q')
      s1[m] = 'p';
  }
  int p = 1;
  for (int i = 0; i < len; i++) {
    if (s[i] != s1[i]) p = 0;
  }
  if (p)
    printf("Yes");
  else
    printf("No");
  return 0;
}
