
def main(input = STDIN)
  array = [[2, 380], [3, 550], [5, 850], [10, 380 * 5 * 80 / 100], [12, 2200 * 85 / 100], [15, 2550 * 88 / 100]]
  cost = Array.new(51, 1 / 0.0)
  cost[0] = 0
  array.each{|i|
    for j in 0..50 - i[0]
      cost[i[0] + j] = cost[j] + i[1] if cost[i[0] + j] > cost[j] + i[1]
    end
  }
  while (m = input.gets.to_i) != 0
    puts cost[m / 100]
  end
end
main