Example

Input

5 3
4
2
5


Output

5
2
4
1
3
#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int (i)=(0);(i)<(int)(n);++(i))
using ll = long long;
using P = pair<ll, ll>;
using namespace std;

template<class T> void vin(vector<T>& v, int n) {
    v.resize(n);
    for (int i = 0; i < n; ++i) {
        cin >> v[i];
    }
}

int main() {
    int n, m;
    cin >> n >> m;
    vector<P> p(n);
    rep(i, n) {
        p[i].first = i;
        p[i].second = i+1;
    }
    int cur = -1;
    rep(i, m) {
        int e;
        cin >> e;
        e--;
        p[e].first = cur;
        cur--;
    }
    sort(p.begin(), p.end());
    rep(i, n) {
        cout << p[i].second << endl;
    }
    return 0;
}

