#include <iostream>
using namespace std;
int w[6]={2,3,5,12,10,15};
int m[6];
int main()
{
	m[5]=(int)850*3*0.88; m[4]=(int)380*5*0.8; m[3]=(int)550*4*0.85;
	m[2]=850; m[1]=550; m[0]=380;
	int W;
	while(1)
	{
		cin >> W ; if(!W) break;
		W/=100;
		int dp[1500][51]={0};
		int pnt=0;
		for(int i=0;i<6;i++)
		{
			if(w[i]>W) continue;
			else if(dp[pnt][w[i]]==0 || dp[pnt][w[i]]>m[i]) dp[pnt][w[i]]=m[i];
			for(int k=0;k<(int)W/w[i];k++)
			{
				for(int j=0;j<=W;j++)
				{
					if(dp[pnt][j]>0 && (dp[pnt+1][j]>dp[pnt][j] || dp[pnt+1][j]==0))
						dp[pnt+1][j]=dp[pnt][j];
					if(dp[pnt][j]>0 && j+w[i]<=W && (dp[pnt+1][j+w[i]]>dp[pnt][j]+m[i] || dp[pnt+1][j+w[i]]==0))
						dp[pnt+1][j+w[i]]=dp[pnt][j]+m[i];
				}
				pnt++;
			}
		}
		cout << dp[pnt][W] << endl;
	}
}