#include <cstdio>//头文件不解释
#include <iostream>
#include <string>
#include <cstring>
#include <cmath>
#include <algorithm>
#include <iomanip>
#define rr register
#define int long long
#define f_for(i,a,b) for(rr int i=a;i<=b;i++)
using namespace std;
const int maxx=1e4;
int n,m;
string a,b;
int  main() 
{
	cin>>a;
	b=a;// 把原来的赋到b上最后比较
	bool t=true;
	int len=a.length()-1;
	for(rr int i=0; i<=len; i++)
		switch(a[i])
		{
			case 'q':
				a[i]='p';
				break;
			case 'p':
				a[i]='q';
				break;
			case 'b':
				a[i]='d';
				break;
			case 'd':
				a[i]='b';
				break;
		}
	for(rr int i=0; i<=len; i++)
		if(a[i]!=b[len-i])
			t=false;
	if(t)
		cout<<"Yes"<<endl;
	else
		cout<<"No"<<endl;
}
