#include <bits/stdc++.h>
using namespace std;
typedef pair<long double, int> p;
bool compare(p a, p b){
return a.first < b.first;
}
int main(){
vector<p> testing;
int n;
cin>>n;
for(int i=1; i<=n; i++){
long double x,y;
cin>>x>>y;
testing.push_back(make_pair(atan2(y,x),i));
}
sort(testing.begin(), testing.end(), compare);
// for(int i=0; i<testing.size(); i++){
// cout<<testing[i].first<<" "<<testing[i].second<<endl;
// }
long double minDif = 10;
pair<int,int> ans;
for(int i=1; i<testing.size(); i++){
long double tempDif = abs(testing[i].first - testing[i-1].first);
if(tempDif < minDif){
minDif = tempDif;
ans = make_pair(testing[i].second, testing[i-1].second);
}
}
cout<<ans.first<<" "<<ans.second<<endl;
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+Cgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKdHlwZWRlZiBwYWlyPGxvbmcgZG91YmxlLCBpbnQ+IHA7Cgpib29sIGNvbXBhcmUocCBhLCBwIGIpewoJcmV0dXJuIGEuZmlyc3QgPCBiLmZpcnN0Owp9CgppbnQgbWFpbigpewoJdmVjdG9yPHA+IHRlc3Rpbmc7CglpbnQgbjsKCWNpbj4+bjsKCWZvcihpbnQgaT0xOyBpPD1uOyBpKyspewoJCWxvbmcgZG91YmxlIHgseTsKCQljaW4+Png+Pnk7CgkJdGVzdGluZy5wdXNoX2JhY2sobWFrZV9wYWlyKGF0YW4yKHkseCksaSkpOwoJfQoKCXNvcnQodGVzdGluZy5iZWdpbigpLCB0ZXN0aW5nLmVuZCgpLCBjb21wYXJlKTsKCS8vIGZvcihpbnQgaT0wOyBpPHRlc3Rpbmcuc2l6ZSgpOyBpKyspewoJLy8gCWNvdXQ8PHRlc3RpbmdbaV0uZmlyc3Q8PCIgIjw8dGVzdGluZ1tpXS5zZWNvbmQ8PGVuZGw7CgkvLyB9CgoKCWxvbmcgZG91YmxlIG1pbkRpZiA9IDEwOwoJcGFpcjxpbnQsaW50PiBhbnM7CgoJZm9yKGludCBpPTE7IG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