d=int(input()) a,b=map(int,input().split()) print(b*d+max((a-b)*d,0))