#include <iostream>
using namespace std;
int main() {
long long N, K, L;
cin >> N >> K >> L;
// Calculate the total area of all squares
long long totalArea = N * L * K;
// Calculate the area of overlap (the area of the last square that doesn't overlap)
long long overlapArea = (N - 1) * L * K;
// Calculate the area of the union
long long unionArea = totalArea - overlapArea;
cout << unionArea << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkgewogIGxvbmcgbG9uZyBOLCBLLCBMOwogIGNpbiA+PiBOID4+IEsgPj4gTDsKCiAgLy8gQ2FsY3VsYXRlIHRoZSB0b3RhbCBhcmVhIG9mIGFsbCBzcXVhcmVzCiAgbG9uZyBsb25nIHRvdGFsQXJlYSA9IE4gKiBMICogSzsKCiAgLy8gQ2FsY3VsYXRlIHRoZSBhcmVhIG9mIG92ZXJsYXAgKHRoZSBhcmVhIG9mIHRoZSBsYXN0IHNxdWFyZSB0aGF0IGRvZXNuJ3Qgb3ZlcmxhcCkKICBsb25nIGxvbmcgb3ZlcmxhcEFyZWEgPSAoTiAtIDEpICogTCAqIEs7IAoKICAvLyBDYWxjdWxhdGUgdGhlIGFyZWEgb2YgdGhlIHVuaW9uCiAgbG9uZyBsb25nIHVuaW9uQXJlYSA9IHRvdGFsQXJlYSAtIG92ZXJsYXBBcmVhOwoKICBjb3V0IDw8IHVuaW9uQXJlYSA8PCBlbmRsOwoKICByZXR1cm4gMDsKfQ==