#include <bits/stdc++.h>
using namespace std;
string b;
int a[1000];
int main() {
  a['b'] = a['d'] = 1, a['q'] = a['p'] = 2;
  cin >> b;
  int len = b.length();
  for (int i = 0; i <= len / 2; i++)
    if (!(a[b[i]] == a[b[len - i - 1]]) || len & 1) printf("No"), exit(0);
  printf("Yes");
}
