#include <bits/stdc++.h>
using namespace std;
string s, t;
int main() {
  cin >> s;
  for (char& c : s) c = c == 'd' ? 'b' : c == 'q' ? 'p' : c;
  t = s;
  reverse(t.begin(), t.end());
  cout << (s == t ? "Yes" : "No") << endl;
}
