def Main(): ans=10**13 d=int(input()) a,b=map(int,input().split()) for i in range(0,d+1): ans=min(ans,i*a+(d-i)*b) print(ans) Main()