Example

Input

5 3
4
2
5


Output

5
2
4
1
3
#include <algorithm>
#include <iostream>
#include <map>
#include <numeric>
#include <vector>
#define FOR(i,a,b) for (int i=(a);i<(b);i++)
#define RFOR(i,a,b) for (int i=(b)-1;i>=(a);i--)
#define REP(i,n) for (int i=0;i<(n);i++)
#define RREP(i,n) for (int i=(n)-1;i>=0;i--)

using namespace std;

using P = tuple<int, int>;

int main() {
  int N, M; cin >> N >> M;
  vector<P> nums(N);
  FOR(n, 1, N + 1) { get<1>(nums[n - 1]) = n; }
  FOR(i, 1, M + 1) {
    int E; cin >> E;
    get<0>(nums[E - 1]) = -i;
  }
  sort(nums.begin(), nums.end());
  for (auto &p : nums) {
    cout << get<1>(p) << endl;
  }
  return 0;
}