#include <bits/stdc++.h>
#pragma GCC optimize(2)
using namespace std;
inline int read() {
  char c = getchar();
  int x = 0;
  bool f = 0;
  while (!isdigit(c)) f ^= !(c ^ 45), c = getchar();
  while (isdigit(c)) x = (x << 1) + (x << 3) + (c ^ 48), c = getchar();
  if (f) x = -x;
  return x;
}
int dic[12093];
char s[1000010];
int main() {
  dic['b'] = 0;
  dic['p'] = 1;
  dic['d'] = 2;
  dic['q'] = 3;
  cin >> s;
  for (int i = 0, j = strlen(s) - 1; i < j; i++, j--) {
    if (dic[s[i]] != (dic[s[j]] + 2) % 4) return puts("No"), 0;
  }
  puts("Yes");
  return 0;
}
