#include<stdio.h>
#include<iostream>
#include<list>
#include<map>
#include<math.h>
#include<vector>
#include<algorithm>
#include<string.h>
#include<iomanip>
#define range(i,a,b) for(int i = (a); i < (b); i++)
#define rep(i,b) range(i,0,b)
#define debug(x) cout << "debug" << x << endl;
using namespace std;

int dp[51];

int main(){
    int n;
    int store[6][2] = {
        {2,380},
        {3,550},
        {5,850},
        {10,1520},
        {12,1870},
        {15,2244}
    };
    while(cin >> n, n){
        rep(i, 51){
            dp[i] = 2 << 24;
        }
        dp[0] = 0;
        n /= 100;
        rep(i, n + 1){
            rep(j,6){
                if(i >= store[j][0]){
                    dp[i] = min(dp[i], dp[i - store[j][0]] + store[j][1]);
                }
            }
        }
        cout << dp[n] << endl;
    }
}