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