PivotOJ

Film Critics

시간 제한: 3000ms메모리 제한: 1024MB출처: NCPC 2020BOJ 21052

문제

The premier of the anticipated action film No Thyme to Fry is right around the corner, and it is time to give early screenings to film critics so that they can review it. A small cinema has been selected to show these early screenings. 

There are nn critics numbered from 11 to nn scheduled to watch the movie early, and each of them will watch it separately. After watching it, they will immediately give it a score from 00 to mm. Susan, the cinema owner, has carefully looked at every critic's social media and already knows that the iith critic thinks the movie is worth a score of aia_i. However, the iith critic will not simply give the movie a score of aia_i like you would expect, because they also take into account the scores that the other critics gave. Here is how they behave:

  1. The first critic to arrive will be so happy that they are the first to review the movie that they will give it a score of mm regardless of their initial opinion.
  2. Every subsequent critic will look at the average score given by the previous critics. If this number is smaller than or equal to the initial opinion aia_i then the critic will give it a score of mm, otherwise they will give it a 00.

Susan thinks the critics' behaviour is ridiculous. She has watched the movie, and it is clearly worth a score of exactly k/nk/n and nothing else! But Susan is the owner of the cinema, so she gets to decide in what order to invite the critics. Your task is to find a permutation of 1,2,,n1,2, \dots, n so that if the critics arrive in this order the average score will be exactly k/nk/n.

입력

The first line of input contains three integers nn, mm and kk (1n21051 \leq n \leq 2 \cdot 10^5, 1m1041 \leq m \leq 10^4, 0knm0 \leq k \leq n \cdot m).  The second line contains the nn integers a1,a2,,ana_1, a_2, \ldots, a_n (0aim0 \le a_i \le m for each ii), the nn critic scores as described above.

출력

If the critics can be ordered in such a way that the resulting average score is exactly k/nk/n, then output nn integers p1,,pnp_1, \ldots, p_n (1pin1 \le p_i \le n), where pip_i indicates that the iith critic to visit the cinema is the critic numbered pip_i.  This list of integers should be a permutation such that the average score given by the critics is k/nk/n.  If there are multiple solutions any one will be accepted.

Otherwise, if there is no such way to order the critics, output "impossible".

예제

예제 1

입력
5 10 30
10 5 3 1 3
출력
3 5 2 1 4

예제 2

입력
5 5 20
5 3 3 3 3
출력
impossible
이 문제는 채점 준비 중입니다. 테스트 데이터가 확보되면 제출이 가능합니다.