#K9436. Find Winners

    ID: 38624 Type: Default 1000ms 256MiB

Find Winners

Find Winners

You are given a list of participants' speeds. Your task is to determine the indices of all participants who have the maximum speed. The indices are zero-indexed and should be printed in increasing order.

Mathematically, if the list of speeds is (S = [s_0, s_1, \dots, s_{n-1}]) and (M = \max(S)), then you need to output all indices (i) such that (s_i = M).

inputFormat

Input is read from standard input (stdin). The first line contains a single integer (n) — the number of participants. The second line contains (n) space-separated integers representing the speeds of the participants.

outputFormat

Output the indices of all participants with the maximum speed in one line, separated by a single space. The output is printed to standard output (stdout).## sample

5
10 12 10 15 15
3 4