let p = Int(readLine()!)! print(p, 1)