#include<iostream>
using namespace std;
#define INF 9999999

int main()
{
	int kona,i;
	int money[51];
	money[0] = 0;
	int size[6] = {2,3,5,10,12,15};
	int cost[6] = {380,550,850,1520,1870,2244};
		
	for(i=1;i<51;i++) money[i] = INF;
	
	for(i=0;i<50;i++)
	{
		if( money[i] != INF)
		{
			for(int j=0;j<6;j++)
			{
				if( (i + size[j]) < 51)
				{
					if( money[i]+cost[j] < money[ i+size[j] ] )
					{
						money[ i+size[j] ] = money[i] + cost[j];
					}
				}
			}
		}
	}


while(cin>>kona,kona != 0)
{
cout<< money[kona/100] << endl;
}
	
}