#include <bits/stdc++.h>
using namespace std;
struct Vector {
  long double x, y;
  long long index;
  long double angle;
  Vector(long double X, long double Y, long long i) {
    x = X;
    y = Y;
    index = i;
    angle = atan2(y, x);
  }
};
bool Sort(Vector a, Vector b) { return a.angle < b.angle; }
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long n;
  cin >> n;
  ;
  vector<Vector> v;
  long double pi = acos(-1);
  for (long long i = 0; i < n; ++i) {
    long double x, y;
    cin >> x >> y;
    v.push_back(Vector(x, y, i + 1));
  }
  sort(v.begin(), v.end(), Sort);
  long double _min = 10;
  pair<long long, long long> ans;
  for (long long i = 1; i < n; ++i) {
    if (_min > (v[i].angle - v[i - 1].angle)) {
      ans.first = v[i].index;
      ans.second = v[i - 1].index;
      _min = v[i].angle - v[i - 1].angle;
    }
  }
  if (_min > (-v[n - 1].angle + v[0].angle + 2 * pi)) {
    ans.first = v[0].index;
    ans.second = v[n - 1].index;
  }
  cout << ans.first << " " << ans.second << "\n";
  return 0;
}
