C = gets.to_i f = false for i in 1..C if C % i == 0 print(i, " ", C / i, "\n") f = true end break if f end