Example

Input

5 3
4
2
5


Output

5
2
4
1
3
#include "bits/stdc++.h"
using namespace std;

//#define int long long
#define DBG 1
#define dump(o) if(DBG){cerr<<#o<<" "<<o<<endl;}
#define dumpc(o) if(DBG){cerr<<#o; for(auto &e:(o))cerr<<" "<<e;cerr<<endl;}
#define rep(i,a,b) for(int i=(a);i<(b);i++)
#define rrep(i,a,b) for(int i=(b)-1;i>=(a);i--)
#define each(it,c) for(auto it=(c).begin();it!=(c).end();it++)
#define all(c) c.begin(),c.end()
const int INF = sizeof(int) == sizeof(long long) ? 0x3f3f3f3f3f3f3f3fLL : 0x3f3f3f3f;
const int MOD = (int)(1e9 + 7);

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