#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int i, j, n, t;
  cin >> n;
  for (i = 1; i * i <= n; i++)
    if (n % i == 0) j = i;
  cout << j << " " << n / j;
  return 0;
}
