#include <bits/stdc++.h>
using namespace std;
multiset<pair<long double, int> > s;
int main() {
  int n, i = 0;
  long double x, y, d;
  cin >> n;
  while (i < n) {
    cin >> x >> y;
    d = atan2(y, x);
    if (d < 0) d += 2 * acos(-1);
    s.insert({d, i + 1});
    ++i;
  }
  set<pair<long double, int> >::iterator it = s.begin(), it2, it3 = s.begin();
  d = 100.00000000;
  it2 = s.end();
  it2--;
  ++it3;
  while (it != it2) {
    if ((it3)->first - it->first < d) {
      d = (it3)->first - it->first;
      x = (it3)->second, y = it->second;
    }
    ++it;
    ++it3;
  }
  it = s.begin();
  if (it->first + 2 * acos(-1) - it2->first < d)
    x = it2->second, y = it->second;
  cout << x << " " << y;
  return 0;
}
