#include <bits/stdc++.h>
using namespace std;
char str[100005];
int a[150], N;
int main() {
  scanf("%s", str);
  N = strlen(str);
  a['p'] = 1;
  a['q'] = 1;
  a['b'] = 2;
  a['d'] = 2;
  for (int i = 0; i < N; i++) {
    if ((a[str[i]]) != (a[str[N - i - 1]])) {
      printf("No\n");
      return 0;
    }
  }
  printf("Yes\n");
  return 0;
}
