Mimi is taking both art and computer science this semester! Inspired, she decides to make an art piece based on the binary representation of two positive integers,
Mimi takes a strip of paper and draws
Can you tell Mimi how many blue and purple stripes there are?
Constraints
Input Specification
The first and only line of input will contain 3 space separated integers:
Output Specification
The output should contain two space-separated integers: the number of stripes that are painted blue, and the number of stripes that are painted purple, respectively.
Sample Input
3 1 2
Sample Output
1 1
Explanation for Sample Output
The binary representation of
Both representations have
Since only
Comments