#include<iostream>
#include<cstdio>
using namespace std;
const int gram[6] = {200,300,500,1000,1200,1500};
const int  val[6] = {380,550,850,1520,1870,2244};
int dp[7000];
void Init(){
  for(int i=0;i<5500;i++)dp[i] = 1<<30;
  // dp[200] = 380;dp[300] = 550;
  for(int i=0;i<6;i++)dp[gram[i]] = val[i];
  for(int i=0;i<6;i++){
    for(int j=400;(j-gram[i])<=5000;j+=100){
      if(j-gram[i] < 0)continue;
      dp[j] = min(dp[j],dp[j-gram[i]]+val[i]);
    }
  }
}

int main(){
  int n;
  Init();
  while(cin >> n && n){
    cout << dp[n] << endl;
  }
  return 0;
}