#K70812. Find Maximum Scorers

    ID: 33392 Type: Default 1000ms 256MiB

Find Maximum Scorers

Find Maximum Scorers

You are given a list of scores achieved by players. Your task is to determine the indices of the players who achieved the highest score. In other words, if the list of scores is \(S = [s_0, s_1, \dots, s_{N-1}]\), you must find all indices \(i\) such that \(s_i = \max(S)\).

The input is provided via standard input and the output should be printed to standard output.

If the list is empty (i.e. when \(N = 0\)), output nothing.

inputFormat

The first line contains an integer \(N\) representing the number of players. The second line contains \(N\) space-separated integers representing the scores of each player.

Note: When \(N = 0\), there will be no second line.

outputFormat

Print to standard output the indices (0-indexed) of the players who have the maximum score, in increasing order. The indices should be separated by a single space. If there are no players, print nothing.

## sample
5
50 80 90 95 70
3

</p>