#include <iostream>
#include <algorithm>

using namespace std;

const int w[] = {2, 3, 5, 10, 12, 15};
const int v[] = {380, 550, 850, 1520, 1870, 2244};
const int num = 6;
int dp[55];

int main()
{
    int m;

    for (int i = 0; i <= 50; i++) 
        dp[i] = 50000;

    dp[0] = 0;
    for (int i = 0; i < num; i++)
        for (int j = 0; j + w[i] <= 50; j++)
            dp[j + w[i]] = min(dp[j + w[i]], dp[j] + v[i]);

    while (cin >> m, m) {
        m = m / 100;
        cout << dp[m] << endl;;
    }

    return 0;
}