#include <bits/stdc++.h>
using namespace std;
signed main() {
  string S;
  cin >> S;
  long long N = S.size();
  map<char, char> A;
  A['q'] = 'p', A['p'] = 'q', A['b'] = 'd', A['d'] = 'b';
  for (long long i = 0; i < N / 2; i++)
    if (A[S[i]] != S[N - 1 - i]) {
      puts("No");
      return 0;
    }
  puts("Yes");
}
