#include<bits/stdc++.h>
using namespace std;
char s[100009];
int a[228];
int main()
{
  int i;	
  a['b']=0;
  a['p']=1;
  a['d']=2; 
  a['q']=3;
  scanf("%s",s+1);
  for(i=strlen(s+1),i=1;i<=(i>>1)+1;i++)
    {
      if(a[s[i]]^((a[s[l-i+1]]+2)%4)) 
	    {
	      cout<<"No"<<endl;
		  return 0;	
		}
    }
  cout<<"Yes"<<endl; 
  return 0;
}