d=int(input()) a,b=map(int,input().split()) print(min(a*x+(d-x)*b for x in range(-~d)))