#include <bits/stdc++.h>
using namespace std;
const int MaxN = 1000 * 1000 + 10;
const long long mod = 1000 * 1000 * 1000 + 7;
const long double Pi = 4 * atan(1);
int main() {
  std::ios_base::sync_with_stdio(false);
  std::cin.tie(nullptr);
  int n;
  cin >> n;
  vector<pair<long double, int>> Vectors(n);
  for (int i = 0; i < n; ++i) {
    long double x, y;
    cin >> x >> y;
    Vectors[i] = {atan2(y, x) + Pi, i + 1};
  }
  sort(Vectors.begin(), Vectors.end());
  long double MinAngle = 1000000.0;
  int pos;
  for (int i = 0; i < n; ++i) {
    long double angle = abs(Vectors[(i + 1) % n].first - Vectors[i].first);
    angle = min(angle, 2.0 * Pi - angle);
    if (angle < MinAngle) {
      MinAngle = angle;
      pos = i;
    }
  }
  cout << Vectors[pos].second << " " << Vectors[(pos + 1) % n].second;
  return 0;
}
