import std.stdio;
import std.string, std.conv;
import std.array, std.algorithm;
import std.math;

void main() {
  int[] weight = [200, 300, 500, 200 * 5, 300 * 4, 500 * 3];
  int[] price = [380, 550, 850, 1520, 1870, 2244];
  int[5000+1] dp = cast(int)1e9;
  dp[0] = 0;
  foreach(i; 0 .. 6) {
    for(int j = weight[i]; j <= 5000; j++) {
      dp[j] = min(dp[j], dp[j - weight[i]] + price[i]);
    }
  }

  for(int N; (N = readln.chomp.to!int) != 0; ) {
    dp[N].writeln();
  }
}