#include <iostream>
using namespace std;

int main() {
  int n;
  int a[3] = {2, 3, 5};
  int b[3] = {380, 550, 850};
  int c[3] = {5, 4, 3};
  int d[3] = {20, 15, 12};
  int e[3];
  int z[51] = {0};
  int f, g, h, s;

  for (int i=0; i<3; i++) {
    e[i] = b[i] * c[i] * (100 - d[i]) / 100;
  }

  for (int i=0; i<3; i++) {
    for (int j=0; j<=50; j++) {
      if (j && !z[j]) continue;
      int k=1;
      while (1) {
        f = j+k*a[i];
        if (f>50) break;
        g = k / c[i];
        h = k - g*c[i];
        s = z[j] + g*e[i] + h*b[i];
        if (!z[f] || s<z[f]) z[f] = s;
        k++;
      }
    }
  }

  //for (int i=6; i<=50; i++) {
  //  for (int j=i-1; j>=5; j--) {
  //    if (z[j]<=z[i]) break;
  //    z[j] = z[i];
  //  }
  //}

  while (cin >> n && n) {
    cout << z[n/100] << endl;
  }

  return 0;
}