#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  int n;
  cin >> s;
  n = s.length();
  for (int i = 0; i < n / 2; i++) {
    char a = s[i], b = s[n - i - 1];
    if ((a == 'b') && (b == 'd')) continue;
    if ((a == 'd') && (b == 'b')) continue;
    if ((a == 'p') && (b == 'q')) continue;
    if ((a == 'q') && (b == 'p')) continue;
    cout << "No";
    return 0;
  }
  cout << "Yes";
  return 0;
}
