#icpc2013summerwarmingUph. [icpc2013summer_warmingUp_h]Shuffling Machine

[icpc2013summer_warmingUp_h]Shuffling Machine

Description

KM bought a new card shuffling machine.
According to his hypothesis, everytime you setup NN cards and push the switch, it shuffles the cards in a totally same way. More precisely, there exists a sequence of integers a1a_1, a2a_2, ..., aNa_N such that

  • the 1st card in the resulting order is always the a1a_1-th card in the initial order,
  • the 2nd card in the resulting order is always the a2a_2-th card in the initial order,
  • ..., and so on.

He wanted to know this sequence, so he setup NN cards in the ascending order: 11, 22, ..., NN. However, he accidentally pushed the switch KK times, and the resulting order of the cards was b1b_1, b2b_2, ..., bNb_N.
But KM says that you can guess a1a_1, a2a_2, ..., aNa_N from b1b_1, b2b_2, ..., bNb_N. Can you do that?


Input

The first line of the input file contains the integers NN (1leqNleq1051 \\leq N \\leq 10^5) and KK (1leqKleq10181 \\leq K \\leq 10^{18}), separated by a space.
The second line of the input file contains N different integers which denotes b1b_1, b2b_2, ..., bNb_N (1leqbileqN1 \\leq b_i \\leq N) in this order, separated by a space.

Output

If KM's hypothesis seems to be wrong, just print Impossible. If there are several possibilities, print Ambiguous. Otherwise, print NN integers which denotes a1a_1, a2a_2, ..., aNa_N in this order, separated by a space.


Sample Input


3 2
3 1 2

Sample Output


2 3 1

Sample Input


3 2
1 3 2

Sample Output


Impossible

Sample Input


4 2
2 1 4 3

Sample Output


Ambiguous

Source Name

The First KMCMonthly Contest