#include <bits/stdc++.h>
using namespace std;
#pragma comment(linker, "/STACK:400000000")
int n, m;
double a, b;
double ya[100010], yb[100010], l[100010];
double da[100010];
int main() {
  cin >> n >> m >> a >> b;
  double L2 = ((b - a) * (b - a));
  for (int i = 0; i < (n); i++) {
    cin >> ya[i];
    da[i] = sqrt(a * a + ya[i] * ya[i]);
  }
  for (int i = 0; i < (m); i++) cin >> yb[i];
  for (int i = 0; i < (m); i++) cin >> l[i];
  int cur = 0;
  double best = 1000000007LL;
  int A = -1, B = -1;
  int lowlim = 0;
  for (int i = 0; i < (m); i++) {
    double dist1 = 1000000007LL;
    for (int j = lowlim; j < (n); j++) {
      double d1 = da[j] + sqrt(L2 + ((yb[i] - ya[j]) * (yb[i] - ya[j])));
      if (dist1 <= d1) break;
      dist1 = d1;
      lowlim = j;
    }
    double dist = dist1 + l[i];
    if (dist < best) {
      best = dist;
      A = lowlim;
      B = i;
    }
  }
  cout << A + 1 << " " << B + 1;
}
