#include <bits/stdc++.h>
using namespace std;
string s;
bool ss[100005] = {false};
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cin >> s;
  int n = s.size();
  for (register int i = 0; i <= n - 1; i++) {
    if (s[i] == 'b' || s[i] == 'd') ss[i] = true;
  }
  for (register int i = 0; i <= (n - 1) / 2; i++) {
    if (ss[i] != ss[n - 1 - i]) {
      cout << "No" << endl;
      exit(0);
    }
  }
  cout << "Yes" << endl;
  return 0;
}
