ZA=input() za=int(ZA) a,b=map(int,input().split()) i=0 king=10000000000000000000000 for _ in range(za+1): kari=i*a+(za-i)*b i=i+1 if kari < king: king=kari print(king)