#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5, mod = 1e9 + 7, inf = 1e9 + 7;
const long double pi = 3.14159265358979323;
int n;
pair<long double, long double> a;
vector<pair<long double, long double> > b;
long double mn = inf;
long double cnv(long double x) { return (1.0 * x * 180.0 / pi); }
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  if (n == 2) return cout << "1 2", 0;
  ;
  for (int i = 1; i <= n; i++) {
    cin >> a.first >> a.second;
    if (a.first == 0) {
      if (a.second > 0) {
        b.push_back({0, i});
      } else {
        b.push_back({180, i});
        b.push_back({-180, i});
      }
      continue;
    }
    if (a.second == 0) {
      if (a.first < 0) {
        b.push_back({-90, i});
      } else {
        b.push_back({90, i});
      }
    }
    if (a.first > 0 && a.second > 0) {
      b.push_back(
          {cnv(asin(a.first / sqrt(a.first * a.first + a.second * a.second))),
           i});
    }
    if (a.first > 0 && a.second < 0) {
      b.push_back({90 + cnv(asin(-a.second / sqrt(a.first * a.first +
                                                  a.second * a.second))),
                   i});
    }
    if (a.first < 0 && a.second > 0) {
      b.push_back(
          {cnv(asin(a.second / sqrt(a.first * a.first + a.second * a.second))) -
               90,
           i});
    }
    if (a.first < 0 && a.second < 0) {
      b.push_back(
          {cnv(asin(-a.first / sqrt(a.first * a.first + a.second * a.second))) -
               180,
           i});
    }
  }
  sort(b.begin(), b.end());
  if (b[0].first != -180) {
    b.push_back({b[0].first + 360, b[0].second});
  }
  for (int i = 1; i < b.size(); i++) {
    mn = min(mn, min(b[i].first - b[i - 1].first,
                     360 - b[i].first + b[i - 1].first));
  }
  for (int i = 1; i < b.size(); i++) {
    if (min(b[i].first - b[i - 1].first, 360 - b[i].first + b[i - 1].first) ==
        mn) {
      cout << b[i - 1].second << ' ' << b[i].second;
      return 0;
    }
  }
}
