#!/usr/bin/env python #coding:UTF-8 M = long(raw_input()) for I in range(1,int(M/2+1)): if M % I == 0: x = I y = M / I print "{0} {1}".format(x,y)