# x*a + (d-x)*b # = x*(a-b) + d*b d = int(input()) a, b = map(int,input().split()) print(min(d*b, d*a))