output_description: Print the minimum number of operations required to make A, B and C all equal.
  
  * * *
input_description: Input is given from Standard Input in the following format:
  
      
      
      A B C
attempt: L = list(map(int, input().split()))
  L.sort(reverse=True)
  # print(L)
  ans = 0
  if all(L[i] % 2 == 1 for i in range(3)) or all(L[i] % 2 == 0 for i in range(3)):
      print((L[0] - L[1]) // 2 + (L[0] - L[2]) // 2)
  elif L[0] % 2 == 1 and L[1] % 2 == 1 and L[2] % 2 == 0:
      print((L[0] + 1 - L[2]) // 2 + (L[1] + 1 - L[2]) // 2 + 1)
  elif L[0] % 2 == 1 and L[1] % 2 == 0 and L[2] % 2 == 0:
      print(abs(L[1] + 1 - L[0]) // 2 + abs(L[2] + 1 - L[0]) // 2 + 1)
  elif L[0] % 2 == 1 and L[1] % 2 == 0 and L[2] % 2 == 1:
      print((L[0] + 1 - L[1]) // 2 + (L[0] + 1 - L[1]) // 2 + 1)
  elif L[0] % 2 == 0 and L[1] % 2 == 0 and L[2] % 2 == 1:
      print((L[0] + 1 - L[2]) // 2 + (L[0] + 1 - L[2]) // 2 + 1)
  elif L[0] % 2 == 0 and L[1] % 2 == 1 and L[2] % 2 == 0:
      print((L[0] + 1 - L[1]) // 2 + (L[0] + 1 - L[2]) // 2 + 1)
  elif L[0] % 2 == 0 and L[1] % 2 == 1 and L[2] % 2 == 1:
      print(abs((L[1] + 1 - L[0]) // 2) + abs(L[2] + 1 - L[0]) // 2 + 1)
  
problem_description: Statement
  
  You are given three integers A, B and C. Find the minimum number of operations
  required to make A, B and C all equal by repeatedly performing the following
  two kinds of operations in any order:
  
    * Choose two among A, B and C, then increase both by 1.
    * Choose one among A, B and C, then increase it by 2.
  
  It can be proved that we can always make A, B and C all equal by repeatedly
  performing these operations.
samples: [{"input": "2 5 4", "output": "2\n    \n\nWe can make A, B and C all equal by the following operations:\n\n  * Increase A and C by 1. Now, A, B, C are 3, 5, 5, respectively.\n  * Increase A by 2. Now, A, B, C are 5, 5, 5, respectively.\n\n* * *"}, {"input": "2 6 3", "output": "5\n    \n\n* * *"}, {"input": "31 41 5", "output": "23"}]