l=[] d=int(input()) a,b=map(int,input().split()) for i in range(d+1): l.append((a-b)*i + b*d) print(min(l))