Ensure that you are logged in and have the required permissions to access the test.
Bunty and Bubly are good friends. Initially, Bunty has X chocolates and Bubly has Y chocolates. Now, they will play a game of chocolates and their turn will come alternatively. They will do the following in their turns starting with Bunty.
If the player has an odd number of chocolates, he will eat one of his chocolate, otherwise, he will do nothing. Then he will give half of his chocolate to his other friend. After K turns, find the number of chocolates that Bunty and Bubly have.
Input Format
The only line of input contains three integers - X, Y, K
Output Format
Print two space-separated integers the number of chocolates that Bunty and Bubly have.
Constraint
1≤X,Y≤1091≤K≤105