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