#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] == 'p' || a[i] == 'q') && (a[j] == 'q' || a[j] == 'p') ||
        (a[i] == 'b' || a[i] == 'd') && (a[j] == 'b' || a[j] == 'd'))
      ;
    else
      f = 0;
  if (f)
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
