/* package whatever; // don't place package name! */

import java.util.*;
import java.util.stream.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Double[] test = {7.0, 2.0, -5.0, 5.0, 9.0};
		Integer[] indexes = IntStream.range(0, test.length).boxed().toArray(Integer[]::new);
    	Arrays.sort(indexes, Comparator.<Integer>comparingDouble(i -> test[i]).reversed());
    
        System.out.println(Arrays.toString(indexes));
	}
}