let num = Int64(readLine()!)! var ans = num for i in Int64(2)...num { if i * i > num { break } if num % i == 0 { ans = i break } } var ans2 = num / ans print(String(ans) + " " + String(ans2))