#include <bits/stdc++.h>
using namespace std;
int a, b;
double dis(double y1, double y2) {
  return hypot(a, y1) + hypot(a - b, y1 - y2);
}
int main() {
  int n, m;
  scanf("%d%d%d%d", &n, &m, &a, &b);
  long long int x = 0, y = 0;
  double ai[n], bi[m], l[m];
  for (int i = 0; i < n; i++) scanf("%lf", &ai[i]);
  for (int j = 0; j < m; j++) scanf("%lf", &bi[j]);
  for (int j = 0; j < m; j++) scanf("%lf", &l[j]);
  double ans = 1e10;
  int i = 0;
  for (int j = 0; j < m; j++) {
    while (i + 1 < n && (dis(ai[i + 1], bi[j]) < dis(ai[i], bi[j]))) i++;
    if (ans > dis(ai[i], bi[j]) + l[j]) {
      ans = dis(ai[i], bi[j]) + l[j];
      x = i + 1;
      y = j + 1;
    }
  }
  cout << x << " " << y;
}
