import scala.io.StdIn.readInt
import scala.collection.immutable.SortedMap

object Main {
  def main(args:Array[String]) = {
    val prices = SortedMap(2->380,3->550,5->850,10->1520,12->1870,15->2244)
    val dp = new Array[Int](51)
    for(i<-0 to 50 if i!=1) {
      for( (w,p) <- prices if i+w<=50) {
        if( dp(i+w)==0 || dp(i) + p < dp(i+w) ) {
          dp(i+w) = dp(i) + p
        }
      }
    }
    var n = 0
    while({n=readInt;n}!=0) {
      println(dp(n/100))
    }
  }
}