#include <bits/stdc++.h>
using namespace std;
const int N = 1000006;
int n, x, y;
vector<pair<long double, int> > vec;
int idx1, idx2;
long double pi = acos(-1);
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  ;
  cin >> n;
  for (int(i) = (0); (i) <= (int)(n - 1); ++(i)) {
    cin >> x >> y;
    long double ang = atan2(y, x);
    vec.push_back({ang, i});
  }
  long double mn = 1e6;
  sort(vec.begin(), vec.end());
  vec.push_back(vec[0]);
  vec[n].first += (2.0 * pi);
  for (int(i) = (0); (i) <= (int)(n - 1); ++(i)) {
    int x = i, y = i + 1;
    if (fabs(vec[x].first - vec[y].first) < mn) {
      mn = fabs(vec[x].first - vec[y].first);
      idx1 = vec[x].second;
      idx2 = vec[y].second;
    }
  }
  cout << min(idx1 + 1, idx2 + 1) << " " << max(idx1 + 1, idx2 + 1) << endl;
  return 0;
}
