#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;
}
char s[1000010];
int main() {
  cin >> s;
  for (int i = 0, j = strlen(s) - 1; i < j; i++, j--) {
    if ((s[i] == 'b' && s[j] == 'd') || (s[i] == 'd' && s[j] == 'b') ||
        (s[i] == 'p' && s[j] == 'q') || (s[i] == 'q' && s[j] == 'p'))
      continue;
    else
      return puts("No"), 0;
  }
  puts("Yes");
  return 0;
}
