#include <bits/stdc++.h>
using namespace std;
const int N = 1e2 + 5;
const int mod = 1e9 + 7;
int main() {
  pair<long long, long long> ans;
  long long x;
  cin >> x;
  for (long long i = 1; i * i <= x; i++) {
    if (x % i == 0) {
      ans.first = i;
      ans.second = x / i;
    }
  }
  cout << ans.first << " " << ans.second << endl;
}
