#include <bits/stdc++.h>
using namespace std;
int m, n;
char a[100005], b;
char czy(char x) {
  if (x == 'd') {
    return x - 2;
  }
  if (x == 'b') {
    return x + 2;
  }
  if (x == 'p') {
    return x + 1;
  }
  if (x == 'q') {
    return x - 1;
  }
}
int main() {
  while ((b = getchar()) != '\n') {
    cin >> b;
    a[++m] = b;
  }
  if (m % 2 != 0) {
    cout << "No" << endl;
  }
  for (int i = m; i >= 1; i--) {
    if (czy(a[i]) == a[m - i + 1]) {
      n++;
    }
    if (n == m) {
      cout << "Yes";
    }
  }
  if (n < m) {
    cout << "No";
  }
  return 0;
}
