#include <bits/stdc++.h>
using namespace std;
static double dist(double ax, double ay, double bx, double by) {
  return sqrt((ax - bx) * (ax - bx) + (ay - by) * (ay - by));
}
int main() {
  int n, m, i, j, besta, bestb;
  double a, b;
  double bestl, l, ln;
  ios_base::sync_with_stdio(false);
  cin >> n >> m >> a >> b;
  int ay[n + 1], by[m + 1], bl[m];
  double ab[n + 1];
  for (i = 0; i < n; i++) cin >> ay[i];
  for (i = 0; i < m; i++) cin >> by[i];
  for (i = 0; i < m; i++) cin >> bl[i];
  ay[n] = 10000000;
  double aa = a * a;
  for (i = 0; i < n + 1; i++) {
    ab[i] = sqrt(aa + (double)ay[i] * (double)ay[i]);
  }
  besta = bestb = 0;
  bestl = 30000000000;
  for (i = j = 0; j < m; j++) {
    l = dist(a, ay[i], b, by[j]) + ab[i];
    ln = dist(a, ay[i + 1], b, by[j]) + ab[i + 1];
    while (ln < l) {
      l = ln;
      i++;
      ln = dist(a, ay[i + 1], b, by[j]) + ab[i + 1];
    }
    l += bl[j];
    if (l < bestl) {
      bestl = l;
      besta = i;
      bestb = j;
    }
  }
  cout << besta + 1 << " " << bestb + 1 << endl;
  return 0;
}
