#include <bits/stdc++.h>
using namespace std;
const int N = 3e5 + 5;
const int MOD = 1e9 + 7;
const double PI = 2 * acos(0.0);
int main() {
  long long x;
  cin >> x;
  long long sq = sqrt(x), a = -1, b = 1e18;
  for (long long i = 1; i <= sq; i++) {
    if (x % i == 0) {
      long long p = i;
      long long q = x / i;
      if (max(p, q) < b) {
        a = min(p, q);
        b = max(p, q);
      }
    }
  }
  cout << a << " " << b << '\n';
  return 0;
}
