#include <bits/stdc++.h>
using namespace std;
int i = 0, dis;
string line;
int main() {
  cin >> line;
  while (line[i] != NULL) i++;
  dis = --i;
  for (int g = 0; g < i / 2; g++) {
    if (line[g] == 'b' && line[dis--] != 'd') {
      cout << "No";
      return 0;
    } else if (line[g] == 'd' && line[dis] != 'b') {
      cout << "No";
      return 0;
    } else if (line[g] == 'p' && line[dis] != 'q') {
      cout << "No";
      return 0;
    } else if (line[g] == 'q' && line[dis] != 'p') {
      cout << "No";
      return 0;
    }
  }
  cout << "Yes";
  return 0;
}
