s = gets.chop
len = s.size
(len/2).times{|i|
    if !(s[i] == 'p' && s[len - i - 1] == 'q' ||
         s[i] == 'q' && s[len - i - 1] == 'p' ||
         s[i] == 'b' && s[len - i - 1] == 'd' ||
         s[i] == 'd' && s[len - i - 1] == 'b') then
      puts "No"
      exit
    end
}
puts "Yes"