#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <climits>
#include <cfloat>
#include <map>
#include <utility>
#include <set>
#include <iostream>
#include <memory>
#include <string>
#include <vector>
#include <algorithm>
#include <functional>
#include <sstream>
#include <complex>
#include <stack>
#include <queue>
#include <cstring>
#include <climits>
#include <sstream>
using namespace std;
static const double EPS = 1e-5;
typedef long long ll;

int w[]={2,3,5,10,12,15};
int v[]={380,550,850,1520,1870,2244};

int dp[50+1];
void solve(){
	for(int i=0;i<51;i++){
		dp[i]=INT_MAX/3;
	}
	dp[0]=0;
	for(int i=0;i<6;i++){
		for(int j=w[i];j<=50;j++){
			dp[j]=min(dp[j],dp[j-w[i]]+v[i]);
		}
	}
}

main(){
	solve();
	int n;
	while(cin>>n){
		if(n==0)break;
		n/=100;
		cout<<dp[n]<<endl;
	}
}