#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  int n;
  cin >> n;
  pair<long double, int> t[n];
  for (int i = 0; i < n; i++) {
    int x, y;
    cin >> x >> y;
    long double a = 0;
    if (x > 0)
      a = atan((long double)y / x);
    else if (x == 0 && y > 0)
      a = 3.14159265359 / 2;
    else if (y >= 0)
      a = 3.14159265359 + atan((long double)y / x);
    else if (x == 0 && y < 0)
      a = -3.14159265359 / 2;
    else if (y < 0)
      a = atan((long double)y / x) - 3.14159265359;
    t[i] = {a, i};
  }
  sort(t, t + n);
  long double min = 7.;
  int id1 = 0, id2 = 0;
  for (int i = 0; i < n; i++) {
    int j = (i + 1) % n;
    long double diff =
        t[j].first - t[i].first + 2 * 3.14159265359 * (i == n - 1);
    if (diff < min) {
      min = diff;
      id1 = t[i].second;
      id2 = t[j].second;
    }
  }
  cout << id1 + 1 << " " << id2 + 1 << endl;
  return 0;
}
