#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  string x = s;
  reverse(s.begin(), s.end());
  int n = s.length() / 2;
  for (int i = 0; i < n; ++i)
    if ((s[i] == 'b' && x[i] != 'd') || (s[i] == 'p' && x[i] != 'q') ||
        (s[i] == 'd' && x[i] != 'b') || (s[i] == 'q' && x[i] != 'p')) {
      puts("No");
      return 0;
    }
  puts("Yes");
  return 0;
}
