#include <iostream>
#include <algorithm>
#define MAX 5000

using namespace std;

int dp[MAX + 1];
int weight[6] = { 200 , 300 , 500 , 1000 , 1200 , 1500 };
int value[6] = { 380 , 550 , 850 , 1520 , 1870 , 2244};

void compute(void){

  for( int i = 0 ; i <= MAX ; i++ ) dp[i] = MAX;
  dp[0] = 0;
  for( int i = 0 ; i < 6 ; i++ ){
    for( int j = 0 ; j <= MAX ; j++ ){
      if( j + weight[i] <= MAX ){
	dp[j + weight[i]] = min( dp[j + weight[i]] , dp[j] + value[i] );
      }
      // 値段はvalueの6種類のみだからづいじそのパターンで計算
    }
  }

}

int main(void){

  compute();

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