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