typedef long long ll; typedef long double ld; #include using namespace std; #define int long long signed main(){ ll n; std::cin >> n; vector> xy(n); vector done(n); vector ans; for (int i = 0; i < n; i++) { std::cin >> xy[i].first >> xy[i].second; if(xy[i].first==0&&xy[i].second==0){ done[i]=true; ans.push_back(i); } } pair now = {0,0}; ld last = 0; while(true){ vector> rem; for (int i = 0; i < n; i++) { if(done[i])continue; rem.push_back({atan2((ld)(xy[i].second-now.second),(ld)(xy[i].first-now.first)), i}); } if(rem.size()==0)break; sort(rem.begin(),rem.end()); auto it = lower_bound(rem.begin(),rem.end(),make_pair(last,-1ll)); if(it==rem.end())it=rem.begin(); auto [theta, ind] = *it; last = theta; done[ind]=true; now = xy[ind]; ans.push_back(ind); } std::cout << ans.size()/2 << std::endl; for (int i = 0; i < ans.size()/2; i++) { std::cout << ans[2*i]+1<<" "<