N, H, W = map(int, input().split()) def calculate_contribution(L, n): if L == 1: return 0 k = n // 2 m = n - k return k * m * (L - 1) total = calculate_contribution(H, N) + calculate_contribution(W, N) print(total)