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