#include <bits/stdc++.h>

using namespace std;

#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,n) FOR(i,0,n)
#define INF (1<<29)

int dp[51];
int data[2][6] = {{ 2, 3, 5, 10, 12, 15 }, {380, 550, 850, 1520, 1870, 2244}};

int main() {
	fill(dp, dp + 51, INF);
	dp[0] = 0;
	REP(i, 6) {
		REP(j, 51) {
			if (j - data[0][i] >= 0)
				dp[j] = min(dp[j], dp[j - data[0][i]] + data[1][i]);
		}
	}
	
	int x;
	while (cin >> x, x) cout << dp[x / 100] << endl;
	return 0;
}