d = int(input()) a, b = map(int, input().split()) if a>b: x = 0 else: x = d ans = x*a+(d-x)*b print(ans)