#include <bits/stdc++.h>
using namespace std;
using Real = long double;
int main() {
  size_t n;
  cin >> n;
  vector<pair<Real, size_t>> angles(n);
  size_t index{};
  for (auto& angle : angles) {
    Real x;
    Real y;
    cin >> x >> y;
    angle.first = (y >= 0 ? 1 : -1) * acos(x / hypot(x, y));
    angle.second = ++index;
  }
  sort(angles.begin(), angles.end());
  Real minAngle = 8 * atan(1.0L) + angles.front().first - angles.back().first;
  size_t a = angles.front().second;
  size_t b = angles.back().second;
  for (size_t i = 1; i < n; ++i) {
    const Real angle = angles[i].first - angles[i - 1].first;
    if (angle < minAngle) {
      minAngle = angle;
      a = angles[i - 1].second;
      b = angles[i].second;
    }
  }
  cout << a << ' ' << b << endl;
}
