#include <bits/stdc++.h>
using namespace std;
long long n, m, a, b;
long long yl[100005], yr[100005], l[100005];
double dist(long long i, long long j) {
  double d;
  d = sqrt((double)(a * a) + (double)(yl[i] * yl[i])) +
      sqrt((double)((a - b) * (a - b)) +
           (double)((yl[i] - yr[j]) * (yl[i] - yr[j]))) +
      l[j];
  return d;
}
int main() {
  long long x, y;
  cin >> n >> m >> a >> b;
  double mi = 10000000000;
  for (long long i = 1; i <= n; i++) cin >> yl[i];
  for (long long i = 1; i <= m; i++) cin >> yr[i];
  for (long long i = 1; i <= m; i++) cin >> l[i];
  for (long long j = 1; j <= m; j++) {
    long long le = 1, ri = n, mid1, mid2;
    while (ri - le > 3) {
      mid1 = le + (ri - le) / 3;
      mid2 = ri - (ri - le) / 3;
      if (dist(mid1, j) > dist(mid2, j))
        le = mid1;
      else
        ri = mid2;
    }
    for (long long i = le; i <= min(ri, n); i++) {
      double d = dist(i, j);
      if (d < mi) {
        mi = d;
        x = i;
        y = j;
      }
    }
  }
  cout << x << " " << y << endl;
}
