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