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