#include<bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
  string s,t;
  cin>>s;
  t=s;
  reverse(t.begin(),t.end());
  for(int i=0;i<(int)t.size();i++){
    if(s[i]=='b') s[i]='d';
    else if(s[i]=='d') s[i]='b';
    else if(s[i]=='p') s[i]='q';
    else if(s[i]=='q') s[i]='p';
  }
  cout<<(s==t?"Yes":"No")<<endl;
  return 0;
}
