import Foundation

let rawData = FileHandle.standardInput.availableData
let scanner = Scanner(string: String(data: rawData, encoding: .utf8)!)

let n = scanner.scanInt()!

for i in 0..<n {
  let j = scanner.scanInt()!
  print(i, j)
}
