output_description: Print the number of cookies Takahashi has, and the number of cookies Aoki has,
  in this order, after performing K operations in total.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      A B K
attempt: A, B, K = input().split()
  
  A = int(A)
  B = int(B)
  K = int(K)
  
  for i = 0; i < K; i++:
  	if i % 2 == 0:
  		B += A /2
  		A /= 2
  	else:
  		A += B / 2
  		B /= 2
  print(A + " " + B)
  
problem_description: Statement
  
  In the beginning, Takahashi has A cookies, and Aoki has B cookies. They will
  perform the following operation alternately, starting from Takahashi:
  
    * If the number of cookies in his hand is odd, eat one of those cookies; if the number is even, do nothing. Then, give one-half of the cookies in his hand to the other person.
  
  Find the numbers of cookies Takahashi and Aoki respectively have after
  performing K operations in total.
samples: [{"input": "5 4 2", "output": "5 3\n    \n\nThe process will go as follows:\n\n  * In the beginning, Takahashi and Aoki have 5 and 4 cookies, respectively.\n  * Takahashi eats one cookie and gives two cookies to Aoki. They now have 2 and 6 cookies, respectively.\n  * Aoki gives three cookies to Takahashi. They now have 5 and 3 cookies, respectively.\n\n* * *"}, {"input": "3 3 3", "output": "1 3\n    \n\n* * *"}, {"input": "314159265 358979323 84", "output": "448759046 224379523"}]