#include <bits/stdc++.h>
using namespace std;
int n, res1, res2;
long double a, b, mini = 7, attan1, b2;
pair<long double, int> t[100013];
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a >> b;
    t[i].first = atan2(a, b);
    t[i].second = i;
  }
  sort(t + 1, t + n + 1);
  for (int i = 2; i <= n; i++) {
    if (abs(t[i].first - t[i - 1].first) < mini) {
      mini = abs(t[i].first - t[i - 1].first);
      res2 = t[i].second;
      res1 = t[i - 1].second;
    }
  }
  if (abs(t[1].first - (t[n].first - 2 * atan2(0, -10000))) < mini) {
    res1 = t[1].second;
    res2 = t[n].second;
  }
  cout << res1 << " " << res2 << endl;
}
