#include<iostream>
#include<algorithm>
#include<cstring>

unsigned int dp[51];

const int a[3]={2,3,5},b[3]={380,550,850},c[3]={5,4,3};
const double d[3]={0.8,0.85,0.88};

int main(){
	memset(dp,-1,sizeof(dp));
	
	dp[0]=0;

	for(int k=0;k<51;k++){
		if(dp[k]!=-1){
			for(int i=0;i<3;i++){
				for(int j=0;j<51/a[i];j++){
					int cost=b[i]*j;
					if(j%c[i]==0)cost*=d[i];

					dp[k+a[i]*j]=std::min(dp[k+a[i]*j],dp[k]+cost);
				}
			}
		}
	}
	
	int n;
	while(std::cin>>n,n){
		std::cout<<dp[n/100]<<std::endl;
	}

	return 0;
}