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?
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 the phone indices of the phones whose signal goes through, separated by spaces.
For 5/15 of the marks, .
6 1 3 2 3 1 4
1 2 3 6