N, H, W = map(int, input().split()) print((H + W - 2) * (N - 1))