#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  vector<pair<long double, int>> v;
  for (int i = 0; i < n; i++) {
    int x, y;
    cin >> x >> y;
    double long z = atan2(y, x);
    v.push_back(make_pair(z, i));
  }
  sort(v.begin(), v.end());
  int idx1 = v[0].second, idx2 = v[n - 1].second;
  long double nax = v[0].first - v[n - 1].first + 2 * acos(-1.0);
  for (int i = 0; i < n - 1; i++) {
    long double cnt = v[i + 1].first - v[i].first;
    if (cnt < nax) {
      nax = v[i + 1].first - v[i].first;
      idx1 = v[i].second;
      idx2 = v[i + 1].second;
    }
  }
  cout << idx1 + 1 << " " << idx2 + 1 << endl;
}
