#include <bits/stdc++.h>
using namespace std;
string s;
int main() {
  cin >> s;
  string s2 = s;
  for (int i = 0; i < s.length(); i++) {
    if (s2[i] == 'b') s2[i] = 'd';
    if (s2[i] == 'd') s2[i] = 'b';
    if (s2[i] == 'p') s2[i] = 'q';
    if (s2[i] == 'q') s2[i] = 'q';
  }
  if (s2 == s)
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
