You are given an integer array consisting of elements. You can perform the following operations on array :
You are required to spend the minimum number of coins in order to make all the elements in array equal.
Input format
Output format
Print lines. For each test case, print a single line denoting the minimum number of coins to make all elements equal.
Constraints
Sum of over all test cases does not exceed 500000
We can make all elements equal to 3 in 1 coin which is optimal.