Example

Input

5 3
4
2
5


Output

5
2
4
1
3
#include<iostream>
#include<string>
#include<iomanip>
#include<cmath>
#include<vector>
#include<algorithm>

using namespace std;

//http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=1367

#define int long long
#define rep(i,n) for(int i = 0; i < (n); i++)
#define INF ((long long)1e18)
#define MOD ((int)1e9+7)
#define endl "\n"

#define yn(f) ((f)?"Yes":"No")
#define YN(f) ((f)?"YES":"NO")

#define MAX

signed main(){
	cin.tie(0);
	ios::sync_with_stdio(false);
	cout<<fixed<<setprecision(10);
	
	int n, m, e;
	vector<pair<int,int>> t;
	
	cin>>n>>m;
	
	for(int i = 1; i <= n; i++){
		t.push_back(make_pair(0,i));
	}
	
	for(int i = 1; i <= m; i++){
		cin>>e;
		t[e-1].first = -i;
	}
	
	sort(t.begin(), t.end());
	
	for(int i = 0; i < n; i++){
		cout<<t[i].second<<endl;
	}
	return 0;
}
