#include <bits/stdc++.h>
using namespace std;
string a;
int i, o;
bool t;
int main() {
  cin >> a;
  t = false;
  o = a.size();
  for (i = 0; i <= o - 1; i++) {
    if (a[i] == 'b' && a[o - i] == 'd') continue;
    if (a[i] == 'q' && a[o - i] == 'p') continue;
    if (a[i] == 'd' && a[o - i] == 'b') continue;
    if (a[i] == 'p' && a[o - i] == 'q') continue;
    t = true;
    break;
  }
  if (t)
    cout << "No";
  else
    cout << "Yes";
  return 0;
}
