#include <iostream>
#include <vector>

using namespace std;
static const int INF = 1e9;
typedef unsigned long long ull;

int g[] = {2, 3, 5, 10, 12, 15};
int p[] = {380, 550, 850, 1520, 1870, 2244};

void solve()
{
	int dp[51];
	for (int i = 0; i < 51; ++i)
	{
		dp[i] = INF;
	}
	dp[0] = 0;
	for (int i = 0; i < 6; ++i)
	{
		for (int j = 0; j < 51; ++j)
		{
			if (j + g[i] < 51 && dp[j + g[i]] > dp[j] + p[i])
			{
				dp[j + g[i]] = dp[j] + p[i];
			}
		}
	}
	int gram;
	while (cin >> gram, gram)
	{
		cout << dp[gram / 100] << endl;
	}
}

int main()
{
	solve();
	return(0);
}