#include <iostream>
#include <limits.h>
#include <vector>
using namespace std;

const int WEIGHT_MAX = 5000;

int u_weight[] = { 200, 300, 500, 1000, 1200, 1500 };
int u_price[] = { 380, 550, 850, 1520, 1870, 2244 };

int main()
{
	vector< int > dp( WEIGHT_MAX + 1, INT_MAX );
	dp[ 0 ] = 0;

	for( int i = 0; i < 6; ++i ){
		for( int j = 0; j + u_weight[ i ] <= WEIGHT_MAX; ++j ){
			dp[ j + u_weight[ i ] ] = min( dp[ j + u_weight[ i ] ], ( dp[ j ] + u_price[ i ] < 0 ? INT_MAX : dp[ j ] + u_price[ i ] ) );
		}
	}

	int weight;

	while( cin >> weight && weight ){
		cout << dp[ weight ] << endl;
	}

	return 0;
}