#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<pair<long double, int> > angles(n, make_pair(0, 0));
  long double pi = atan(1) * 4;
  for (int i = 0; i < n; ++i) {
    int a, b;
    cin >> a >> b;
    long double ang = atan2(b, a);
    angles[i] = make_pair(ang, i + 1);
  }
  sort(angles.begin(), angles.end());
  int idx = -1;
  long double diff = 10000;
  for (int i = 1; i < n; ++i) {
    if (angles[i].first - angles[i - 1].first < diff) {
      diff = angles[i].first - angles[i - 1].first;
      idx = i - 1;
    }
  }
  if (2 * pi + angles[0].first - angles[n - 1].first < diff) {
    printf("%d %d\n", angles[0].second, angles[n - 1].second);
  } else
    printf("%d %d\n", angles[idx].second, angles[idx + 1].second);
  return 0;
}
