M = int(input()) for n in range(2, M): m, r = divmod(M, n) if r == 0: print('{} {}'.format(n, m)) break if n > m: print('1 ()'.fomat(M)) break