#include<bits/stdc++.h>
using namespace std;
int main()
{
    string s;
    cin>>s;
    string t=s;
    int a=s.length();
    reverse(s.begin(),s.end());
    for(int i=0;i<=a;i++)
    {
    if(s[i]=='b') s[i]='d';
	else if(s[i]=='d') s[i]='b';
	else if(s[i]=='q') s[i]='p';
	else if(s[i]=='p') s[i]='q';
    }
    if(s==t) cout<<"Yes\n";
    else cout<<"No\n";
}