#include <iostream>
#include <vector>
#include <algorithm>
#include <limits>
#include <cmath>
using namespace std;
int main(void) {
	int  table[6][2] = { {2,380},{3,550},{5,850 },{10,1520},{12,1870},{15,2244} };
	int dp[53],buf;
	fill(dp, dp+53, 0xfffffff);
	dp[0] = 0;
	for (int i = 0; i < 6; i++) {
		for (int j = 0; j < 51; j++) {
			if (j >= table[i][0]) {
				dp[j] = min(dp[j], dp[j - table[i][0]] + table[i][1]);
			}
		}
	}
	for (;;) {
		cin >> buf;
		if (buf == 0)return 0;
		cout << dp[buf/100] << endl;

	}
	
}