#include <bits/stdc++.h>
using namespace std;
int main() {
  string a;
  cin >> a;
  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 {
      cout << "No";
      return 0;
    }
  cout << "Yes";
  return 0;
}
