#include <climits>
#include <iostream>
#include <vector>

using namespace std;

double cal_cost(int w, int t) {
  vector<vector<int>> params = {
      {200, 380, 5, 20}, {300, 550, 4, 15}, {500, 850, 3, 12}};
  int cost = INT_MAX;
  int a = params[t][0];
  int b = params[t][1];
  int c = params[t][2];
  int d = params[t][3];
  return (w / a / c) * c * b * (100. - d) / 100. +
         (w - w / a / c * c * a) * double(b) / a;
}

int main() {
  int w;
  while (cin >> w, w) {
    double cost = 1e10;
    for (int a = 0; a <= w; a += 200) {
      for (int b = 0; b <= w; b += 300) {
        for (int c = 0; c <= w; c += 500) {
          if (a + b + c != w)
            continue;
          double tmp = cal_cost(a, 0) + cal_cost(b, 1) + cal_cost(c, 2);
          cost = (tmp < cost) ? tmp : cost;
        }
      }
    }
    cout << cost << endl;
  }
}
