#include <bits/stdc++.h>   using namespace std;   int main() {     int n, x;     bool watched[1000001];     cin >> n;     while (cin >> x) watched[x] = true;     for (int i = 1; i <= n; i++)       if (!watched[i]) cout << i;     return 0;   }   