#RELAYB. 鏡文
鏡文
Score : points
Problem Statement
You are given a string consisting of letters b, d, p and q.
Determine whether is a mirror string.
Here, a mirror string is a string such that the following sequence of operations on results in the same string :
- Reverse the order of the characters in .
- Replace each occurrence of
bbyd,dbyb,pbyq, andqbyp, simultaneously.
Constraints
- consists of letters
b,d,p, andq.
Input
The input is given from Standard Input in the following format:
Output
If is a mirror string, print Yes. Otherwise, print No.
pdbq
Yes
ppqb
No