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

int s[51];

void solve();

int main()
{
	int n;
	solve();
	while(cin >> n, n) {
		cout << s[n/100] << endl;
	}
}

void solve()
{
	 int q[6] = {2, 3, 5, 10, 12, 15}, v[6] = {380, 550, 850, 1520, 1870, 2244};
	 for(int i = 5; i <= 50; i++) {
		 s[i] = 1000000;
	 }
	 for(int i = 5; i <= 50; i++) {
		 for(int j = 0; j < 3; j++) {
			 int w = 0, sum = 0;
			 while(w < i) {
				 if(i >= q[j+3] && i >= w + q[j] * (5 - j)) {
					 sum += v[j+3];
					 w += q[j+3];
				 }
				 else {
					 sum += v[j];
					 w += q[j];
				 }
			 }
			 s[i] = min(s[i], sum);
		 }
	 }
}