#include <bits/stdc++.h>
using namespace std;
const int maxn = 1000 * 101;
int n, m, a, b, p[maxn], h[maxn], l[maxn];
double dist(double x, double y, double xx, double yy) {
  return sqrt((x - xx) * (x - xx) + (y - yy) * (y - yy));
}
int main() {
  ios_base::sync_with_stdio(false);
  cin >> n >> m >> a >> b;
  for (int i = 1; i <= n; i++) cin >> p[i];
  for (int i = 1; i <= m; i++) cin >> h[i];
  for (int i = 1; i <= m; i++) cin >> l[i];
  double ans = 1e18;
  int ra, rb;
  for (int i = 1; i <= m; i++) {
    double aa = a, bb = b, hh = h[i];
    double c = aa / bb * hh;
    int j = lower_bound(p + 1, p + n + 1, c) - p;
    double u = dist(b, h[i], a, p[j]) + dist(a, p[j], 0, 0) + l[i];
    if (ans > u) {
      ans = u;
      ra = j;
      rb = i;
    }
    u = dist(b, h[i], a, p[j - 1]) + dist(a, p[j - 1], 0, 0) + l[i];
    if (ans > u && j >= 2) {
      ans = u;
      ra = j - 1;
      rb = i;
    }
  }
  cout << ra << " " << rb << endl;
  return 0;
}
