You are given a string S consisting of the letters b, d, p, and q. A string is defined as a mirror string if performing the following two operations results in the same string:
Reverse the order of the characters in S.
Replace each occurrence of:
b with d
d with b
p with q
q with p
Your task is to determine whether the given string S is a mirror string.
Input Format
A single line containing the string S. The length of S will be between 1 and 100.
Output Format
Print "YES" if S is a mirror string; otherwise, print "NO".
Examples
Example 1
Input
text
bdpq
Output
text
YES
Explanation
Reversing the string gives qpd. Applying the character replacements gives dqb, which does not match the original string.
Example 2
Input
text
pbdq
Output
text
NO
Example 3
Input
text
pqbd
Output
text
YES
Solution Location
Please implement your solution in the file located at /app/.