#include <bits/stdc++.h>
using namespace std;
long double solve(long double x, long double y) {
  long double dif = fabs(x - y);
  if (dif > 3.14159265358979323) dif = 2 * 3.14159265358979323 - dif;
  return dif;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n, i, x, y;
  cin >> n;
  pair<long double, long long> v[n + 1];
  for (i = 1; i <= n; i++) {
    cin >> x >> y;
    v[i] = {atan2(y, x), i};
  }
  sort(v + 1, v + n + 1);
  long double ans = solve(v[1].first, v[n].first);
  x = v[1].second;
  y = v[n].second;
  for (i = 1; i < n; i++) {
    long double dif = solve(v[i].first, v[i + 1].first);
    if (dif <= ans) {
      ans = dif;
      x = v[i].second;
      y = v[i + 1].second;
    }
  }
  cout << x << " " << y;
}
