fulcrum medes was the first to explain the principle of the lever stating that equal weights at equal distance the fulcrum are in equilibrium, and equal weights at unqual distances from the fulcrum are not in equm s from the fulcrum are not in equilibrium but incline towards the weight which is at the greater distance. The above diagram illustrates that equal wong equal distances causes the seesaw to balance. The Law of the Lever is that the lever will balance when the sum of the products of the weight and distance of the weights from the fulcrum on both sides of the fulcrum are equal. So the following set of weights and distances balance the seesaw if the weights are of distance 1 or 2 from the fulcrum. 1 2 2 X 25 + 1 X 50 1 X 20 + 2 x 40 The purpose of this problem is to determine whether a set of weights will balance a seesaw. You will be given an even number of integers representing weights on input. These weights will be placed at integral distances from the fulcrum, in the order entered from left to right. The first half of the weights will be placed on the left side of the fulcrum and the last half of the weights will be placed on the right side of the fulcrum. An integer of 0 will terminate the set of weights. For example, for the situation above, the input would be: 25 50 20 40 0. INPUT: Your program should accept a list of integers entered at the prompt: "Enter weights: ", The list of integers will be terminated by the integer 0. Your program should continue to accept inputs until a 0 alone is entered. At this point your program should terminate. There will be no more than 50 weights entered. OUTPUT: Output should be either: BALANCES or DOES NOT BALANCE. EXAMPLE Enter weights: 25 50 20 40 O BALANCES Enter weights: 2 4 6 8 2 2 0 DOES NOT BALANCE Enter weights: 0