#include using namespace std; const long long M = (long long)1e17 * 5; long long Calc(long long A, long long B, long long C, long long D) { long long AvgA = (A + C) / 2; long long AvgB = (B + D) / 2; long long ErrorA = abs(M - AvgA); long long ErrorB = abs(M - AvgB); return ErrorA + ErrorB; } int main() { int N; cin >> N; vector A(59), B(59); for (int i = 1; i <= N; i++) cin >> A[i] >> B[i]; cout << 50 << endl; for (int i = 1; i <= 50; i++) { pair Best = {1e18, 0}; for (int j = 2; j <= N; j++) { long long E = Calc(A[1], B[1], A[j], B[j]); if (Best.first > E) { Best.first = E; Best.second = j; } } A[1] = (A[1] + A[Best.second]) / 2; B[1] = (B[1] + B[Best.second]) / 2; cout << 1 << ' ' << Best.second << endl; } }