#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#pragma GCC optimize("no-stack-protector")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#pragma GCC optimize("unroll-loops")
using namespace std;
void seriy() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
signed main() {
  seriy();
  long long n;
  cin >> n;
  pair<long long, long long> ans;
  for (long long i = 1; i * i <= n; i++) {
    if (n % i == 0) {
      ans = {i, n / i};
    }
  }
  cout << ans.first << " " << ans.second;
  return 0;
}
