#include <bits/stdc++.h>
using namespace std;
pair<long double, int> v[100005];
int main() {
  int n;
  cin >> n;
  long double min = 1e10, pi = acos(-1);
  for (int i = 1; i <= n; i++) {
    int x, y;
    cin >> x >> y;
    v[i].second = i;
    if (atan2(y, x) < 0) {
      v[i].first = atan2(y, x) + 2 * pi;
    } else {
      v[i].first = atan2(y, x);
    }
  }
  sort(v + 1, v + 1 + n);
  v[n + 1] = v[1];
  int id, id2;
  for (int i = 2; i <= n + 1; i++) {
    long double angle = v[i].first - v[i - 1].first;
    if (angle < 0) {
      angle += 2 * pi;
    }
    if (angle < min) {
      min = angle;
      id = v[i].second;
      id2 = v[i - 1].second;
    }
  }
  cout << id << " " << id2;
}
