#include <iostream>
#include <map>
using namespace std;
int main() {
int N;
cin>>N;
map<int,int> Map;
for(int i=0;i<N-1;i++)
{
int x;
cin>>x;
if(Map.count(x) <= 0)
{
Map[x]=1;
}
else
{
Map[x]++;
}
}
for(int i=1;i<=N;i++)
{
if(Map.count(i) <= 0)
{
cout<<i<<endl;
break;
}
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8bWFwPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CgkKCWludCBOOwoJY2luPj5OOwoJCgltYXA8aW50LGludD4gTWFwOwoJZm9yKGludCBpPTA7aTxOLTE7aSsrKQoJewoJCWludCB4OwoJCWNpbj4+eDsKCQlpZihNYXAuY291bnQoeCkgPD0gMCkKCQl7CgkJCU1hcFt4XT0xOwoJCX0KCQllbHNlCgkJewoJCQlNYXBbeF0rKzsKCQl9Cgl9CgkKCWZvcihpbnQgaT0xO2k8PU47aSsrKQoJewoJCWlmKE1hcC5jb3VudChpKSA8PSAwKQoJCXsKCQkJY291dDw8aTw8ZW5kbDsKCQkJYnJlYWs7CgkJfQoJfQoJCgkKCQoJcmV0dXJuIDA7Cn0=