n, h, w = map(int, input().split()) k = n // 2 print(k * (n - k) * (h + w - 2))