#arc128e. [arc128_e]K Different Values

[arc128_e]K Different Values

Problem Statement

Given are a sequence of NN integers A=(A1,A2,cdots,AN)A=(A_1,A_2,\\cdots,A_N) and an integer KK.

Consider making a sequence of integers xx that satisfies both of the following conditions.

  • For each integer ii (1leqileqN1 \\leq i \\leq N), xx contains exactly AiA_i occurrences of ii. xx does not contain other integers.
  • For every way of choosing KK consecutive elements from xx, their values are all distinct.

Determine whether it is possible to make xx that satisfies the conditions. If it is possible, find the lexicographically smallest such xx.

Constraints

  • 2leqKleqNleq5002 \\leq K \\leq N \\leq 500
  • 1leqAi1 \\leq A_i
  • sum1leqileqNAileq200000\\sum_{1 \\leq i \\leq N} A_i \\leq 200000
  • All values in input are integers.

Input

Input is given from Standard Input in the following format:

NN KK A1A_1 A2A_2 cdots\\cdots ANA_N

Output

If it is impossible to make a sequence xx that satisfies the conditions, print -1. If it is possible, print the lexicographically smallest such xx.


Sample Input 1

3 3
2 2 1

Sample Output 1

1 2 3 1 2

Two sequences x=(1,2,3,1,2),(2,1,3,2,1)x=(1,2,3,1,2),(2,1,3,2,1) satisfy the conditions. The lexicographically smaller one, (1,2,3,1,2)(1,2,3,1,2), is the answer.


Sample Input 2

3 2
2 1 2

Sample Output 2

1 2 3 1 3

Sample Input 3

3 3
1 3 3

Sample Output 3

-1