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

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