#include using namespace std; int main(){ int n; cin >> n; int sum=0; for(int i=0; i> a; sum += a; } int v; cin >> v; cout << sum-v << endl; }