#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  pair<long double, int> p[100005];
  for (int i = 0; i < n; i++) {
    int x, y;
    cin >> x >> y;
    p[i].first = atan2(x, y);
    p[i].second = i;
  }
  sort(p, p + n);
  long double mini = 10000, first, second;
  for (int i = 0; i < n; i++) {
    long double angle = p[(i + 1) % n].first - p[i].first;
    if (angle < 0) angle += 2 * acos(-1);
    if (angle < mini) {
      mini = angle;
      first = p[i].second;
      second = p[(i + 1) % n].second;
    }
  }
  cout << first + 1 << " " << second + 1 << endl;
  return 0;
}
