#include<bits/stdc++.h>
using namespace std;
int main()
{
	char x[88888888],y[88888888];
    int sum;
    cin>>x;
    sum=strlen(x);/
    sum=sum-1;
    for(int i=0;a[i]!='\0';i++){
        if(x[i]=='b') y[sum]='d';
        if(x[i]=='d') y[sum]='b';
        if(x[i]=='p') y[sum]='q';
        if(x[i]=='q') y[sum]='p';
        sum--;
    }
    if(strcmp(x,y)==false)
	{
        cout<<"Yes";
    }
	else
	{
        cout<<"No";
    }

 return 0;
}
