#include <bits/stdc++.h>
int main(void) {
  double a;
  double b;
  int c = 0;
  double s;
  int x[10000];
  int p;
  int n;
  char d[10000];
  char e[10000];
  scanf("%s", e);
  n = strlen(e);
  for (int i = 0; i < n; i++) {
    d[i] = e[n - i - 1];
    if (d[i] == 98)
      d[i] = 100;
    else if (d[i] == 100)
      d[i] = 98;
    else if (d[i] == 112)
      d[i] = 113;
    else if (d[i] == 113)
      d[i] = 112;
    if (d[i] == e[i]) c++;
  }
  if (n == c)
    printf("Yes\n");
  else
    printf("No\n");
  return 0;
}
