#include using namespace std; void fast_io() { ios::sync_with_stdio(false); std::cin.tie(nullptr); } int main() { fast_io(); long long n, h, w; cin >> n >> h >> w; long long ans = (h - 1) * (n / 2) * (n - n / 2) + (w - 1) * (n / 2) * (n - n / 2); cout << ans << endl; }