#include <bits/stdc++.h>
using namespace std;
string a, b;
long long l, tot;
char temp;
int main() {
  cin >> a;
  l = a.size();
  for (int i = 1; i <= a.size(); i++) {
    temp = a[i];
    a[i] = a[l];
    a[l] = temp;
    l--;
  }
  for (int i = 1; i <= a.size(); i++) {
    if (a[i] == 98)
      b[i] == 100;
    else if (a[i] == 100)
      b[i] == 98;
    else if (a[i] == 112)
      b[i] == 113;
    else
      b[i] == 112;
  }
  for (int i = 1; i <= a.size(); i++) {
    if (a[i] == b[i]) tot++;
  }
  if (tot = a.size())
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
