#include <bits/stdc++.h>
using namespace std;
char s[100002], t[100002];
int main() {
  cin >> s;
  int a = strlen(s);
  for (int i = 1; i <= a; i++) t[i] = s[i];
  reverse(s, s + a);
  for (int i = 1; i <= a; i++) {
    if (s[i] == 'b')
      s[i] == 'd';
    else if (s[i] == 'd')
      s[i] == 'b';
    else if (s[i] == 'q')
      s[i] == 'p';
    else if (s[i] == 'p')
      s[i] == 'q';
    if (s[i] != t[i]) {
      cout << "No\n";
      goto a1;
    }
    cout << "Yes\n";
  }
a1:
  return 0;
}
