#include<cstdio>
#include<cmath>
#include<iostream>
#include<algorithm>
using namespace std;
int main(){
    int vol;
    while(cin>>vol){
        int ans=2000000000;
        if(!vol)break;
        vol/=100;
        for(int i=0;i<=50;i++){
            for(int j=0;j<=50;j++){
                for(int k=0;k<=50;k++){
                    if((i+j+k)!=vol)continue;
                    if((i%2)||(j%3)||(k%5))continue;
                    int An=i/2,Bn=j/3,Cn=k/5;
                    //printf("[%d][%d][%d] [%d][%d][%d]\n",i,j,k,An,Bn,Cn);
                    ans=min(ans,An/5*1520+(An%5)*380+Bn/4*1870+(Bn%4)*550+Cn/3*2244+(Cn%3)*850);
                }
            }
        }
        cout<<ans<<endl;
    }
    return 0;
}