#include <bits/stdc++.h>
using namespace std;
char a[10009];
int main() {
  cin >> a;
  for (int i = 0; i < strlen(a); i++) {
    if (a[i] != 'b' && a[i] != 'd' && a[i] != 'p' && a[i] != 'q') {
      cout << "No" << endl;
      return 0;
    }
  }
  cout << "Yes" << endl;
  return 0;
}
