#include <bits/stdc++.h>
using namespace std;
const double PI = 3.14159265358979323846;
const double EPS = 1e-12;
const long long INF = 1LL << 29;
const long long mod = 1e9 + 7;
template <class T>
ostream &operator<<(ostream &os, const vector<T> &v) {
  int n = v.size();
  for (long long(i) = 0; (i) < (long long)(n); ++(i))
    os << v[i] << (i == n - 1 ? "" : " ");
  return os;
}
int main() {
  string s, t;
  cin >> s;
  t = s;
  reverse((t).begin(), (t).end());
  for (long long(i) = 0; (i) < (long long)(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;
  return 0;
}
