#include <bits/stdc++.h>
using namespace std;
int n, m, i, c[100005], a, b, v, k, t[100005];
set<int> g[100005];
vector<int> first_half;
vector<int> second_half;
vector<int> total;
int par[209], group[209];
int arra[150000];
vector<long long int> RaB;
map<char, long long int> vis_c;
map<string, long long int> nibo;
int main() {
  long long int i, j, k, l, p, q, r, s, t, u, v, w, x, y, z, n;
  cin >> n;
  for (i = 1; i <= sqrt(n); i++) {
    if (n % i == 0) {
      a = i;
      b = n / i;
    }
  }
  cout << a << " " << b;
}
