fn main() { let n = 200000; println!("{}", n); for i in 0..n - 1 { println!("{} {}", i + 1, i + 2); } }