#include <bits/stdc++.h>
using namespace std;
int main() {
  char t[5], s[5];
  cin >> t;
  int len = strlen(t), k = len - 1;
  for (register int i = 0; i < len; i++) s[k--] = t[i];
  for (register int i = 0; i < len; i++) {
    if (s[i] == 'b')
      s[i] = 'd';
    else if (s[i] == 'd')
      s[i] = 'b';
    else if (s[i] == 'p')
      s[i] = 'q';
    else
      s[i] = 'p';
  }
  for (register int i = 0; i < len; i++) {
    if (s[i] != t[i]) {
      cout << "No" << endl;
      return 0;
    }
  }
  cout << "Yes" << endl;
  return 0;
}
