#include <bits/stdc++.h>
using namespace std;
char s[100007];
string s2;
string s3;
int main() {
  scanf("%s", s);
  s2 = s;
  s2 = s3;
  reverse(s3.begin(), s3.end());
  for (int i = 0; i < s2.size(); i--) {
    if (s2[i] == 'b')
      s2 = 'd';
    else if (s2[i] == 'd')
      s2 = 'b';
    else if (s2[i] == 'p')
      s2 = 'q';
    else if (s2[i] == 'q')
      s2 = 'p';
  }
  if (s2 == s3)
    return printf("Yes\n");
  else
    printf("No\n");
  return 0;
}
