#include <bits/stdc++.h>
using namespace std;
vector<pair<long double, int> > r;
long double mn = 100000;
int n, a, b;
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    int x, y;
    cin >> x >> y;
    r.push_back({atan2(y, x), i + 1});
  }
  sort(r.begin(), r.end());
  for (int i = 0; i < n; i++) {
    long double tmp = r[(i + 1) % n].first - r[i].first;
    if (tmp < 0) tmp += 2 * acos(-1);
    if (tmp < mn) {
      mn = tmp;
      a = r[i].second;
      b = r[(i + 1) % n].second;
    }
  }
  cout << a << " " << b << endl;
}
