#include using namespace std; int main() { int N = 200000; cout << N << "\n"; for (int i = 1; i < N; i++) { cout << i << " " << i + 1 << "\n"; } return 0; }