output_description: If the length of S is 2, print S as is; if the length is 3, print S after
  reversing it.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      S
attempt: A, B, K = map(int, input().split())
  
  for k in range(K):
  
      if A % 2 != 0 and A < 1:
              
          A -= 1
  
      B += round(A/2)
      A -= round(A/2)
  
      if B % 2 != 0 and if B < 1:
              
          B -= 1
  
      A += round(B/2)
      B -= round(B/2)
  
  print(A, B)
problem_description: Statement
  
  You are given a string S of length 2 or 3 consisting of lowercase English
  letters. If the length of the string is 2, print it as is; if the length is 3,
  print the string after reversing it.
samples: [{"input": "abc", "output": "cba\n    \n\nAs the length of S is 3, we print it after reversing it.\n\n* * *"}, {"input": "ac", "output": "ac\n    \n\nAs the length of S is 2, we print it as is."}]