Circus Performance

아직 제출이 없습니다시간 제한1초메모리 제한1024 MB

문제

A very famous circus is in the city! There are exactly nn acrobats in the circus, and this time they prepared a special show in honor of the SPb Team School Programming Olympiad 2022.

It is known that the ii-th acrobat has a height equal to a_ia\_i and weight equal to b_ib\_i. Any three acrobats can get together and perform an unusual stunt. If acrobats with numbers ii, jj and kk perform a stunt, the efficiency of the stunt is estimated as a_ib_j+a_jb_k+a_kb_ia\_i b\_j + a\_j b\_k + a\_k b\_i.

A circus' trainer considers an ordered trio of acrobats (i,j,k)(i, j, k) good if the efficiency of their stunt is no less than if they are arranged in reverse order (k,j,i)(k, j, i).

For the final act of the show the trainer wants line up all nn acrobats so that any triple of consecutive acrobats would be good. Help him with this difficult task!

입력

The first line of input contains an integer nn representing the number of acrobats in the circus (3n10003 \leq n \leq 1000).

In the ii-th of the following nn lines there are two space-separated integers a_ia\_i and b_ib\_i --- the height and weight of the ii-th acrobat (1a_i,b_i1091 \leq a\_i, b\_i \leq 10^9).

출력

Print nn different integers from 11 to nn --- the numbers of acrobats in the order in which they should be lined up.