#include <bits/stdc++.h>
using namespace std;
int gcd(int a, int b) { return b ? gcd(b, a % b) : a; };
int lcm(int a, int b) { return a * b / gcd(a, b); };
int month[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
int main() {
  string s;
  cin >> s;
  string m = s;
  for (int i = 0; i < (int)(s.size()); i++) {
    if (s[i] == 'b')
      m[i] = 'd';
    else if (s[i] == 'd')
      m[i] = 'b';
    else if (s[i] == 'p')
      m[i] = 'q';
    else if (s[i] == 'q')
      m[i] = 'p';
  }
  cout << ((m == s) ? "Yes" : "No") << endl;
  return 0;
}
