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

int volume[6] = { 200, 300, 500, 1000, 1200, 1500 };
int value[6]  = { 380, 550, 850, 1520, 1870, 2244 };
int n;
int dp[7][51];

int main()
{
	while (cin >> n, n)
	{
		for (int i = 0; i < 7; i++)
		{
			for (int j = 0; j < 51; j++)
			{
				dp[i][j] = 99999999;
			}
		}

		dp[0][0] = 0;
		for (int i = 1; i < 7; i++)
		{
			for (int j = 0; j < 51; j++)
			{
				int vol = volume[i - 1] / 100;
				int val = value[i - 1];
				if (j - vol < 0)
				{
					dp[i][j] = dp[i - 1][j];
				}
				else
				{
					dp[i][j] = min(dp[i - 1][j], dp[i][j - vol] + val);
				}
			}
		}

		cout << dp[6][n / 100] << endl;
	}

	return 0;
}