#include <iostream>
using namespace std;

int dp[100];
int cost[6] = {380, 550, 850, 1520, 1870, 2244};
int amo[6] = {2, 3, 5, 10, 12, 15};

int main() {
    for(int i=0; i<100; ++i) dp[i] = 1<<29;
    dp[0] = 0;

    for(int i=0; i<6; ++i)
        for(int j=0; j+amo[i]<100; ++j)
            if(dp[j] != 1<<29)
                dp[j+amo[i]] = min(dp[j+amo[i]], dp[j] + cost[i]);

    int n;
    while(cin>>n, n) cout<<dp[n/100]<<endl;
}