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