s = gets.chop
len = s.size
ok = true
(len/2).times{|i|
  ok &= 
  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'
}
puts ok ? "Yes" : "No" 