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