#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n, k, h;
  cin >> n >> k >> h;
  long long i, j;
  pair<long long, pair<long long, long long>> p[n];
  for (i = 0; i < n; i++) {
    cin >> p[i].first;
  }
  for (i = 0; i < n; i++) {
    cin >> p[i].second.first;
    p[i].second.second = i;
  }
  sort(p, p + n);
  long double start = 0;
  long double end = k * h;
  i = 150;
  long double ans;
  while (i--) {
    long double mid = (start + end) / 2;
    j = 1;
    for (long long l = 0; l < n; l++) {
      long double xh = h * j;
      long double time = xh / p[l].second.first;
      if (time <= mid) {
        j++;
      }
    }
    if (j > k) {
      ans = mid;
      end = mid - 1;
    } else {
      start = mid + 1;
    }
  }
  j = 1;
  for (i = 0; i < n; i++) {
    long double xh = h * j;
    long double time = xh / p[i].second.first;
    if (time <= ans) {
      cout << p[i].second.second + 1 << " ";
      j++;
    }
    if (j == k + 1) {
      break;
    }
  }
}
