#include using namespace std; using ll = long long; const ll goal = 5e17; int N; ll A[45], B[45]; int main(void){ ios::sync_with_stdio(false); cin.tie(nullptr); cin >> N; for(int i = 0;i < N;i++)cin >> A[i] >> B[i]; ll mn = goal * 2; int mnpos = 0; for(int i = 0;i < N;i++){ ll val = abs(goal - A[i]) + abs(goal - B[i]); if(mn > val){ mn = val; mnpos = i; } } vector> ans; for(int i = 0;i < 50;i++){ if(mnpos != 0){ ans.push_back({1, mnpos + 1}); } } cout << ans.size() << endl; for(auto [a, b] : ans){ cout << a << " " << b << endl; } return 0; }