d = int(input())
a,b = map(int,input().split())

res = 10**18
for i in range(d+1):
    tmp = i*a+(d-i)*b
    res = min(res,tmp)

print(res)