Biathlon#8568

Biathlon

1 second
128 megabytes
Hard

Piggy decided to organize a biathlon race in which competitors will compete in two disciplines. She invited competitors, each having the following characteristics:

As the organizer, Piggy may choose any distances she likes for each of the two disciplines -- that is, any non-negative real numbers s_1 and s_2. Now, she wonders which competitors could be potential winners; in other words, whether there exist s_1 and s_2 that allow a competitor to secure victory.

Write a program to determine which competitors can win.

Input

The first line contains (2 \le n \le 10^5). The next lines each contain two positive integers v_1 and v_2 (1 \le v_1, v_2 \le 10^4): the velocities of the -th competitor (for i = 0, 1, \dots, n - 1).

Output

Output a single line containing the indices of competitors who can win, in increasing order, separated by spaces. Indices start from . If no competitor can win, output .

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading

Note

First example. All competitors who can win have indices , , and . The competitor with index wins, for example, if s_1 = 0 and s_2 = 10; the competitor with index wins if s_1 = 10 and s_2 = 0; the one with index wins for some distances, e.g., s_1 = 10 and s_2 = 10. Competitor cannot win since competitor always defeats them.

Second example. Only competitors and can have the minimal time, but neither uniquely. Therefore, the correct output is .