#include<cstdio>
#include<cmath>
#include<algorithm>
#include<iostream>
#include<string>
#include<vector>
#include<map>
#include<cstdlib>
#include<iomanip>
#include<queue>
#include<set>


using namespace std;

void Solution()
{
    const int weight[] = {2, 3, 5, 10, 12, 15}; //10 = 5袋買った時、12 = 4袋買った時, 15 = 3袋買った時
    const int value[] = {380, 550, 850, 1520, 1870, 2244}; //1520, 1870, 2244 = 割引がある時
    const int num = 6;
    
    int dp[52]; // 25 + 17 + 10
    
    int amount;
        
    for (int i = 0; i <= 52; i++)
    {
        dp[i] = 1000000000;
    }
    
    dp[0] = 0;
    
    for(int i = 0; i < 52; i++)
    {
        for(int j=0; j < num; j++)
        {
            if(i - weight[j] >= 0)
            {
                dp[i] = min(dp[i], dp[i - weight[j]] + value[j]);
            }
        }
    }
    
    while(cin>>amount)
    {
        if(amount == 0)
        {
            break;
        }
        
        cout<<dp[amount / 100]<<endl;
    }
}

int main()
{
    Solution();
    return 0;
}