#include <stdio.h>
#include <string.h>

#define min(a, b) ((a) < (b) ? (a) : (b))

int dp[128];

void solve(int v, int p)
{
    int i;

    for (i = 0; i < 60; i++){
        if (dp[i] == -1) continue;
        if (dp[i + v] == -1) dp[i + v] = dp[i] + p;
        else dp[i + v] = min(dp[i + v], dp[i] + p);
    }
}

int main(void)
{
    int n;
    int i;

    memset(dp, -1, 128 * sizeof(int));
    dp[0] = 0;
    solve(2, 380);
    solve(3, 550);
    solve(5, 850);
    solve(10, 3040);
    solve(12, 1870);
    solve(15, 2244);
    /*
    for (i = 0; i < 5; i++){
        int j;
        for (j = 0; j < 10; j++) printf("%4d ", dp[i * 10 + j]);
        puts("");
    }
    puts("");
    */
    while (scanf("%d", &n), n){
        printf("%d\n", dp[n / 100]);
    }

    return 0;
}