Before entering NTHU CS, you need to pass the test given by Stiff Waist Beast, our Department President.
You have a four digit integer A, and you need to generate other three numbers B, C, D. The rules are as follows:
B = swap the first and second digit of A, and swap the third and fourth digit of A.
C = rotate A one digit to the right
D = reverse A
For example, if A = 1234
B = 2143, C = 4123, D = 4321
a four digit integer A, it's guarantee that no 0 in A.
Please output (A + B) / (C + D) to third decimal place.
Don't forget to print '\n' in the end!