n, h, v = map(int, input().split()) x = max(h, n - h) y = max(v, n - v) print(x * y * 4)