링크 : https://www.acmicpc.net/problem/2010
#include <iostream>
using namespace std;
int main() {
int num = 0;
int sum = 0;
cin >> num;
for(int i = 0; i < num; i++){
int temp;
cin >> temp;
sum += temp;
}
cout << sum - num + 1;
return 0;
}