There are phones numbered from
to
lined up in a row. The
phone is a distance of
kilometres away from the cell tower. Each phone is communicating with the tower on a frequency of
.
Some phones will intefere if with another phone if they are on the same frequency. In particular, a phone's signal will not get through to the cell tower if there is a phone closer communicating at the same frequency.
Given a row of phones, can you determine which phone's signal goes through?
Input Specification
The first line will contain the integer
, the numbr of phones.
The second line will contain integers,
, the frequency that the
phone is communicating on.
Output Specification
Output the phone indices of the phones whose signal goes through, separated by spaces.
Subtasks
For 5/15 of the marks, .
Sample Input
6
1 3 2 3 1 4
Sample Output
1 2 3 6
Comments