def calculate_area(n, k, l):
  """Calculates the area of the union of squares.

  Args:
    n: The number of squares.
    k: The length of the side of each square.
    l: The spacing between the squares.

  Returns:
    The area of the union of squares.
  """

  total_area = 0
  for i in range(n):
    # Calculate the coordinates of the bottom-left corner of the square
    x = i * (k + l)
    y = i * (k + l)

    # Calculate the area of the square
    square_area = k * k

    # Add the area of the square to the total area
    total_area += square_area

  return total_area

# Get the input from the user
n, k, l = map(int, input().split())

# Calculate the area of the union of squares
area = calculate_area(n, k, l)

# Print the output
print(area)