#include <bits/stdc++.h>
using namespace std;
long long printDivisors(long long n) {
  long long ans = n;
  for (long long i = 1; i <= sqrt(n); i++) {
    if (n % i == 0) {
      ans = min(ans, max(i, n / i));
    }
  }
  return ans;
}
int main() {
  long long t;
  cin >> t;
  long long a = printDivisors(t);
  cout << min(a, t / a) << " " << max(a, t / a) << endl;
  return 0;
}
