ll d[114514],j,n,c,v;{rd(n,c,v);rep(i,1,n+1)for(j=2;j*i<114514;j++)d[j*i]=min(d[j*i]?d[j*i]:1e9,d[i]+c+v*~-j);wt(min(d[n..114513]));}