#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  int upper = sqrt(n);
  for (int i = upper; i > 0; i--) {
    int mult = n / i;
    if (i * mult == n) {
      cout << i << " " << mult << "\n";
      return 0;
    }
  }
  return 0;
}
