#include <bits/stdc++.h>
using namespace std;
const long double PI = 3.14159265358979323846;
int main() {
  int n;
  scanf("%d", &n);
  vector<pair<long double, int> > tans;
  int x, y;
  for (int i = 0; i < n; i++) {
    scanf("%d %d", &x, &y);
    tans.emplace_back(
        make_pair((((long double)atan2(y, x)) * ((long double)180.0) / PI), i));
  }
  sort(tans.begin(), tans.end());
  long double difAtual = 1000000000;
  int c1 = -1, c2 = -1;
  long double aux;
  for (int i = 0; i < n - 1; i++) {
    aux = fabs(tans[i].first - tans[i + 1].first);
    if (aux > 180.0) aux = 360 - aux;
    if (difAtual > aux) {
      difAtual = aux;
      c1 = tans[i].second;
      c2 = tans[i + 1].second;
    }
  }
  aux = fabs(tans[0].first - tans[n - 1].first);
  if (aux > 180.0) aux = ((long double)360) - aux;
  if (difAtual > aux)
    difAtual = aux, c1 = tans[0].second, c2 = tans[n - 1].second;
  printf("%d %d\n", c1 + 1, c2 + 1);
  return 0;
}
