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