#include <bits/stdc++.h>
#define rep(i,a,n) for(int i=a;i<n;i++)
#define repb(i,a,b) for(int i=a;i>=b;i--)
#define all(a) a.begin(),a.end()
#define o(a) cout<<a<<endl
#define int long long
#define fi first
#define se second
using namespace std;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef pair<int,int> pii;

int w[6]={2,3,5,10,12,15};
int v[6]={380,550,850,1520,1870,2244};
int dp[60];
const int INF=1e9;

signed main(){
	rep(i,0,60) dp[i]=INF;
	dp[0]=0;
	rep(i,0,6){
		for(int j=0;j+w[i]<=50;j++){
			dp[j+w[i]]=min(dp[j+w[i]],dp[j]+v[i]);
		}
	}
	//rep(i,0,60) o(dp[i]);
	int W;
	while(1){
		cin>>W;
		if(W==0) break;
		W/=100;
		o(dp[W]);
	}	
}