A student from ITESM Campus Monterrey plays with a new encryption method for numbers. This method consists of the following steps:
This student failed Computational Organization, that's why this student asked the judges of ITESM Campus Monterrey's internal ACM programming contest to help find the number of 1-bits of these two representations so that he can continue playing.
You have to write a program that reads a number and gives as output the numbers and .
Input
The first line will contain a number which is the number of cases that you have to process. Each of the following lines () will contain the number (, in decimal representation) which is the number the student wants to encrypt.
Output
You will have to output lines, each containing the numbers and in that order, separated by one space, corresponding to that line's number to encrypt.