#include <bits/stdc++.h>
using namespace std;
char a[100005], b, n, m;
int czy(int 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() {
  for (int i = 1; i <= 100000; i++) {
    cin >> b;
    if ((b = getchar()) == '\n') {
      n = i;
      break;
    }
    a[i] = b;
  }
  for (int i = n; i >= 1; i--) {
    if (czy(a[i]) != a[n - i - 10]) {
      m++;
      break;
    }
  }
  if (m == 0) {
    cout << "Yes";
  }
  if (m != 0 || n % 2 != 0) {
    cout << "No";
  }
  return 0;
}
