
#include <stdio.h>
#define min(x,y) ((x<y)?x:y)
int amount[6] = { 2, 3, 5, 10, 12, 15};
int value[6] = { 380, 550, 850, 1520, 1870, 2244};

int dp[7][51];

void calcMinVal(void){
	int c_shop;
	int c_amount;
	int tmp1;
	int tmp2;
	
	for( c_shop = 0; c_shop < 7; c_shop++){
		for( c_amount = 0; c_amount < 51; c_amount++){
		dp[c_shop][c_amount] = 10000000;
		}
	}

	for(c_shop = 0; c_shop < 7; c_shop++){
		dp[c_shop][0] = 0;
	}
	
	for( c_shop = 0; c_shop < 6; c_shop++){
		for( c_amount = 1; c_amount < 51; c_amount++){
			if( c_amount - amount[c_shop] >= 0){
				tmp1 = dp[c_shop][c_amount - amount[c_shop]] + value[c_shop];
				tmp2 = dp[c_shop+1][c_amount - amount[c_shop]] + value[c_shop];
				dp[c_shop+1][c_amount] = min(dp[c_shop][c_amount],min(tmp1,tmp2));				
			}else{
				dp[c_shop+1][c_amount] = dp[c_shop][c_amount];
			}
		}
	}
}

int main(void){
	int input;
	calcMinVal();
	while(1){
		scanf("%d",&input);
		if(input == 0){
			break;
		}
		printf("%d\n",dp[6][input/100]);
	}
}