#include<bits/stdc++.h>
using namespace std;
#define inf 8500

int main(){
	vector<int> dp(51,inf);
	int w[] = {2,10,3,12,5,15};
	int v[] = {380,380*5*8/10,550,550*4*85/100,850,850*3*88/100};
	dp[0] = 0;
	for(int i=0;i<6;i++)
		for(int j  =0;j<51-w[i];j++)
			dp[j+w[i]] = min(dp[j+w[i]],dp[j]+v[i]);
	while(1){
	int n;
	cin>>n;
	if(n==0)break;
	cout<<dp[n/100]<<endl;
	}


	return 0;
}

