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

int main(){
	int dp[51];
	int amo[6] = { 2, 3, 5, 10, 12, 15 };
	int pri[6] = { 380, 550, 850, 1520, 1870, 2244 };
	dp[0] = 0;
	for( int i=1; i<=50; i++ ){
		dp[i] = (1<<30);
	}
	for( int i=0; i<6; i++ ){
		for( int j=0; j+amo[i]<51; j++ ){
			dp[j+amo[i]] = min( dp[j+amo[i]], dp[j]+pri[i] );
		}
	}
	int n;
	while( cin >> n, n ){
		cout << dp[n/100] << endl;
	}
}