Sum Sort

Sample Input

Sample Output