#include <bits/stdc++.h>
using namespace std;
const long double PI = acos(-1.0);
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  cerr.tie(nullptr);
  int n;
  cin >> n;
  vector<pair<long double, int> > v;
  for (int i = 0; i < n; i++) {
    int x, y;
    cin >> x >> y;
    v.push_back(make_pair(atan2(x, y), i + 1));
  }
  sort(v.begin(), v.end());
  v.push_back(make_pair(v[0].first + 2 * PI, v[0].second));
  int sol = 0;
  long double mx = INT_MAX;
  for (int i = 0; i < n; i++) {
    long double t = v[i + 1].first - v[i].first;
    if (t < mx) {
      mx = t;
      sol = i;
    }
  }
  cout << v[sol].second << " " << v[sol + 1].second << endl;
  return 0;
}
