#include <bits/stdc++.h>
using namespace std;
const long double PI = acos(-1.0);
vector<pair<long double, int> > vec;
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    long double x, y;
    cin >> x >> y;
    pair<long double, int> angle;
    angle.first = atan2(y, x);
    angle.second = i + 1;
    vec.push_back(angle);
  }
  sort(vec.begin(), vec.end());
  long double ans_angle = 2 * PI;
  int ans1 = 0, ans2 = 0;
  for (int i = 0; i < n; i++) {
    long double tmp = (vec[(i + 1) % n].first - vec[i].first);
    if (tmp < 0) tmp += 2 * PI;
    if (tmp < ans_angle) {
      ans_angle = tmp;
      ans1 = vec[i].second;
      ans2 = vec[(i + 1) % n].second;
    }
  }
  printf("%d %d\n", ans1, ans2);
}
