#include <iostream>
#include <stack>
#include <algorithm>
#include <cstdio>
#include <sstream>
#include <vector>
#include <string>
#include <cmath>

#define rep(x,to) for(int x=0;x<to;x++)
#define rep2(x,from,to) for(int x=from;x<to;x++)

using namespace std;


int main(void){

int wg;
int ryo[]={200,300,500,1000,1200,1500};
int plc[]={380,550,850,0,0,0};	

	plc[3]=380*5*0.8; plc[4]=550*4*0.85; plc[5]=850*3*0.88;
	rep(i,6) ryo[i] /= 100;

	while(cin >> wg ){
		if(wg==0 || cin.eof()) break;
		wg /= 100;
		vector<int>dp(wg+1,1<<22);
		dp[0]=0;
	rep(i,6) for(int j=0;j+ryo[i]<=wg; j++){
		dp[j+ryo[i]] = min( dp[j+ryo[i]] , dp[j]+plc[i] );
	}
	cout << dp[wg] << endl;
	}
	
	
	return 0;
}