using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace cf16_relay_open_B
{
    class Program
    {
        static void Main(string[] args)
        {
            string a = Console.ReadLine();
            string d = new string(a.Reverse().ToArray()); // olleh
            string s = "";
            for(int i = 0; i < d.Length; i++)
            {
                if (d[i] == 'p') { s += "q"; }
                else if (d[i] == 'q') { s += "p"; }
                else if (d[i] == 'b') { s += "d"; }
                else if (d[i] == 'd') { s += "b"; }
                else { s += d[i];  }
            }
            Console.WriteLine(s==a?"Yes":"No");
            Console.ReadLine();

        }
    }
}
