#include <bits/stdc++.h>
using namespace std;
int main() {
  string a;
  char k;
  cin >> a;
  string b = "";
  for (int i = a.length() - 1; i >= 0; i--) {
    k = a[i];
    switch (k) {
      case 'b':
        b += "d";
      case 'd':
        b += "b";
      case 'p':
        b += "q";
      case 'q':
        b += "p";
    }
  }
  if (a == b)
    cout << "Yes";
  else
    cout << "No";
}
