(define dict '((#\p . #\q) (#\q . #\p) (#\b . #\d) (#\d . #\b)))

(define (is-mirror-sentence s)
  (define (_ims l r)
    (let ((len-l (length l)) (len-r (length r)))
      (if (< len-l len-r)
          "No"
          (if (= len-l len-r)
              (if (equal? l r) "Yes" "No")
              (_ims (cdr l) (cons (cdr (assq (car l) dict)) r))))))
  (_ims (string->list s) '()))

(define (main args)
  (let ((s (read-line)))
    (print (is-mirror-sentence s)))
  0)
