#include <iostream>
using namespace std;

const int inf = 1<<20;

int main()
{
	int p[6][2] = 
	{
		{2  ,380},
		{3  ,550},
		{5  ,850},
		{2*5,380*5*0.80},
		{3*4,550*4*0.85},
		{5*3,850*3*0.88}
	};

	int dp[51] = {0};
	for(int i=1; i<51; i++) dp[i] = inf;

	int x;
	for(int j=0; j<6; j++)
	for(int i=0; i<51; i++)
	{
		x = p[j][0]+i;
		if(!(x<51)) break;

		if(dp[x]>dp[i]+p[j][1])
		{
			dp[x]=dp[i]+p[j][1];
		}
	}

	int g;
	while(cin >> g, g)
	{
		cout << dp[g/100] << endl;
	}

	return 0;
}