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