#include <iostream>
#include <vector>

using namespace std;
#define rep(i,n) for(int i=0;i<n;++i)
/*
200 380
300 550
500 850
1000 380*5*0.8
1200 550*4*0.85
1500 850*3*0.88

*/
int main(){
	int n;
	int dp[110]={0};
	rep(i,110) dp[i]=1<<20;
	int d[7][2];
	d[0][0]=2;
	d[0][1]=380;

	d[1][0]=3;
	d[1][1]=550;

	d[2][0]=5;
	d[2][1]=850;

	d[3][0]=10;
	d[3][1]=380*5*0.8;

	d[4][0]=12;
	d[4][1]=550*4*0.85;

	d[5][0]=15;
	d[5][1]=850*3*0.88;

	d[6][0]=0;
	d[6][1]=0;
	rep(i,6){
		// cout<<d[i][0]<<" "<<d[i][1]<<endl;
		dp[d[i][0]]=d[i][1];
	}
	dp[0]=dp[1]=300000;
	rep(i,56){
		rep(j,7){
			dp[i+d[j][0]]=min(dp[i+d[j][0]],dp[i]+d[j][1]);
		}
	}
	rep(i,57){
		// cout<<dp[i]<<endl;
	}
	while(cin>>n,n){
		cout<<dp[n/100]<<endl;
	}
}