P11971 [AOJ] Rearranging a Sequence
普及
题目描述

Example

Input

5 3
4
2
5

Output

5
2
4
1
3

输入格式

见题面

输出格式

见题面

样例输入
5 3 4 2 5
样例输出
5 2 4 1 3