Minibuses
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 122.174 megabytes
At the rush hour, three minibuses arrived to the station at the same time, following the same route, into which the passengers immediately got crowded. The drivers found that the number of people in different minibuses is different, and they decided to reallocate a part of passengers so that in each minibus there was an equal number of passengers. Determine the minimum number of passengers to reallocate.
Input
Three positive integers, not greater than 100 - the number of passengers in the first, second and third minibus.
Output
Print the minimum number of passengers to reallocate. If this is not possible, print the word "IMPOSSIBLE".
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 5K
Acceptance rate 30%