#include <iostream>
using namespace std;
int main() {
long long n;
long long sum = 0;
long long count = 0;
while (cin >> n) {
sum += n;
count++;
}
cout << sum - (count - 1);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgICBsb25nIGxvbmcgbjsKICAgIGxvbmcgbG9uZyBzdW0gPSAwOwogICAgbG9uZyBsb25nIGNvdW50ID0gMDsKCiAgICB3aGlsZSAoY2luID4+IG4pIHsKICAgICAgICBzdW0gKz0gbjsKICAgICAgICBjb3VudCsrOwogICAgfQoKICAgIGNvdXQgPDwgc3VtIC0gKGNvdW50IC0gMSk7CiAgICByZXR1cm4gMDsKfQo=