#include <iostream>
using namespace std;
int main() {
int x, s = 0;
while(cin >> x)
s += x;
cout << s - x;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgICBpbnQgeCwgcyA9IDA7CiAgICB3aGlsZShjaW4gPj4geCkKICAgICAgICBzICs9IHg7CiAgICBjb3V0IDw8IHMgLSB4Owp9