Example

Input

5 3
4
2
5


Output

5
2
4
1
3
#include<bits/stdc++.h>
#define INF 1e9
#define llINF 1e18
#define MOD 1000000007
#define pb push_back
#define mp make_pair 
#define F first
#define S second
#define ll long long
#define vi vector<ll>
#define vvi vector<vi>
#define BITLE(n) (1LL<<((ll)n))
#define SHIFT_LEFT(n) (1LL<<((ll)n))
#define SUBS(s,f,t) ((s).substr((f)-1,(t)-(f)+1))
#define ALL(a) (a).begin(),(a).end()
#define EPS 1e-15
using namespace std;

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  ll n,q;cin>>n>>q;
  vector<pair<ll,ll>> ma(n);
  for(int i=0;i<n;i++){
    ma[i] = mp(-1,-(i+1));
  }
  for(int i=0;i<q;i++){
    ll a;cin>>a;
    ma[a-1].F = i;
  }
  sort(ALL(ma),greater<pair<ll,ll>>());
  for(auto a:ma)
    cout<<-a.S<<endl;
  return 0;
}
