#include using namespace std; int main(){ const int n = 10; int tot = n * (n+1) / 2; for(int i = 0; i < n-1; i++){ int a; cin >> a; tot -= a; } cout << tot << endl; return 0; }