#include <iostream>
#include <algorithm>
#define INF 99999999
using namespace std;

int dp[51];

void make() {
  const int weight[6] = {2, 3, 5, 10, 12, 15};
  const int price[6] = {380, 550, 850,
			int(380*5*(1.0-0.2)+0.5),
			int(550*4*(1.0-0.15)+0.5),
			int(850*3*(1.0-0.12)+0.5)};
  dp[0] = 0;
  for(int w = 1; w <= 50; ++w) {
    dp[w] = INF;
    for(int i = 0; i < 6; ++i) {
      int p = w - weight[i];
      if(p < 0) continue;
      dp[w] = min(dp[w], price[i] + dp[p]);
    }
  }
}

main() {
  int W;
  make();
  while((cin >> W) && W) cout << dp[W/100] << endl;
}