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