#include <bits/stdc++.h>
using namespace std;
const long double PI = atan(1) * 4;
struct ang {
  long double first;
  int second;
};
vector<ang> angles;
bool compare(ang a, ang b) { return a.first < b.first; }
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  long double a, b;
  ang tt;
  for (int i = 0; i < n; i++) {
    cin >> a >> b;
    tt.first = atan2(b, a);
    tt.second = i + 1;
    angles.push_back(tt);
  }
  sort(angles.begin(), angles.end(), compare);
  auto it2 = angles.end();
  it2--;
  auto it1 = angles.begin();
  long double temp = it2->first - it1->first;
  if (temp > PI) temp = 2 * PI - temp;
  int ans1 = it1->second, ans2 = it2->second;
  long double t;
  it2 = it1;
  it2++;
  for (; it2 != angles.end(); it1++, it2++) {
    t = (it2->first) - (it1->first);
    if (t > PI)
      t = 2 * PI - t;
    else if (temp > t) {
      temp = t;
      ans1 = it1->second;
      ans2 = it2->second;
    }
  }
  cout << ans1 << " " << ans2 << endl;
  return 0;
}
