d = int(input()) a, b = [int(x) for x in input().split(" ")] if a - b < 0: print(f"{d*(a-b) + b*d}") elif a - b >= 0: print(f"{b*d}")