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