numbers = list(map(int, input().split())) car_one_time = 0 car_two_time = 0 car_one_sandbox = 0 # testing purposes to see difference between 0.80 and 0.20 car_two_sandbox = 0 # testing purposes to see difference between 0.80 and 0.20 middle_index = len(numbers) // 2 + 1 for i in numbers[0:middle_index - 1]: car_one_time += int(i) car_one_sandbox += int(i) if int(i) == 0: car_one_time *= 0.80 # при този начин на модифициране на променливата, дава 100 от 100 car_one_sandbox -= car_one_sandbox * 0.20 # при този начин на модифициране на променливата, дава 40 от 100 for j in numbers[len(numbers):middle_index - 1:-1]: car_two_time += int(j) car_two_sandbox += int(j) if int(j) == 0: car_two_time *= 0.80 # при този начин на модифициране на променливата, дава 100 от 100 car_two_sandbox -= car_two_sandbox * 0.20 # при този начин на модифициране на променливата, дава 40 от 100 total_time = 0 winner = "" if car_one_time > car_two_time: winner = "right" print(f"The winner is {winner} with total time: {car_two_time:.1f}") elif car_one_time < car_two_time: winner = "left" print(f"The winner is {winner} with total time: {car_one_time:.1f}")