#include <bits/stdc++.h>
using namespace std;
const long long inf = 1e9;
const long long mod = 1e9 + 7;
signed main() {
  std::ios::sync_with_stdio(false);
  std::cin.tie(0);
  string s;
  cin >> s;
  string t = s;
  reverse((t).begin(), (t).end());
  for (long long i = 0; i < (t.size()); i++) {
    if (t[i] == 'b') t[i] = 'd';
    if (t[i] == 'd') t[i] = 'b';
    if (t[i] == 'p') t[i] = 'q';
    if (t[i] == 'q') t[i] = 'p';
  }
  cout << (s == t ? "Yes" : "No") << endl;
}
