#include <iostream>
#include <fstream>
#include <sstream>
#include <iomanip> 
#include <complex> 
#include <string>
#include <vector> 
#include <list>
#include <deque> 
#include <stack> 
#include <queue> 
#include <set>
#include <map>
#include <bitset>
#include <functional>
#include <utility>
#include <algorithm> 
#include <numeric> 
#include <typeinfo> 
#include <cstdio>
#include <cstdlib> 
#include <cstring>
#include <cmath>
#include <climits> 
#include <ctime> 

using namespace std;
const int INF=10000000;

int g[6]={2,3,5,10,12,15},p[6]={380,550,850,1520,1870,2244};

int main(void){
	int n;
	int a,b;
	int dp[51];
	for(a=0;a<=50;a++)dp[a]=INF;
	dp[0]=0;
	for(a=0;a<6;a++){
		for(b=0;b+g[a]<=50;b++){
			dp[b+g[a]]=min(dp[b+g[a]],dp[b]+p[a]);
		}
	}
	dp[1]=380;
	while(1){
		cin >> n;
		if(n==0)break;
		cout << dp[n/100] <<endl;
	}
	return 0;
}