#include <iostream>
using namespace std;
int main() {
long int a,b,c,n;
cin >> a >> b >> c;
n= a*b+b*c+a*c; //
cout << n;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7Cglsb25nIGludCBhLGIsYyxuOwoJY2luID4+IGEgPj4gYiA+PiBjOwoJbj0gYSpiK2IqYythKmM7IC8vIAoJY291dCA8PCBuOwoJcmV0dXJuIDA7Cn0=