#include<iostream>
#include<algorithm>
using namespace std;

const int pricA = 380;
const int pricB = 550;
const int pricC = 850;
const int discA = (pricA*5)*0.8;
const int discB = (pricB*4)*0.85;
const int discC = (pricC*3)*0.88;
const int INF = 1<<20;

int main()
{
	int w;

	while(cin >> w, w)
	{
		int cmp, ans = INF;
		w /= 100;
		for(int a = 0; a*2 <= w; a++)
		{
			for(int b = 0; a*2+b*3 <= w; b++)
			{
				if((w - (a*2+b*3)) % 5 == 0)
				{
					int c = (w-(a*2+b*3))/5;

					cmp = discA*(a/5)+pricA*(a%5) + discB*(b/4)+pricB*(b%4) + discC*(c/3)+pricC*(c%3);
					//printf("a:%d b:%d c:%d = %d\n", a, b, c, cmp);
					ans = min(ans, cmp);
				}
			}
		}
		cout << ans << endl;
	}
}