Biathlon

Given each competitor's two speeds, find all indexes that can win for some choice of the two track distances.

Medium7GeometrySortingGreedyBinary searchNo attempts yetTime limit2sMemory limit512 MB

Problem

Piggy is organizing a biathlon race with two disciplines. She invited NN competitors, and the race runs under these rules.

  • Competitor ii covers the first discipline at speed V1V_1 and the second discipline at speed V2V_2.
  • Each competitor holds that speed over the whole of the matching track.
  • The distance covered in time t1t_1 in the first discipline is S1=V1t1S_1 = V_1 t_1, and the distance covered in time t2t_2 in the second discipline is S2=V2t2S_2 = V_2 t_2.
  • A competitor wins when the sum of his two times is strictly smaller than the sum of the two times of every other competitor.

As the organizer, Piggy picks the two distances S1S_1 and S2S_2 freely among the non-negative real numbers. A competitor is a potential winner when some choice of S1S_1 and S2S_2 makes him win. Find every potential winner.

Input

The first line contains the number of competitors NN. (1N2×1051 \le N \le 2 \times 10^5)

Each of the next NN lines contains the two speeds V1V_1 and V2V_2 of competitor ii, separated by a space. (1V1,V21061 \le V_1, V_2 \le 10^6, i=0,1,,N1i = 0, 1, \dots, N-1)

Output

On one line, print the indexes of the potential winners in increasing order, separated by spaces. Indexing starts from 0. If no competitor can win, print -1 on that line.