Problem: Today, Osama gave Fadi an integer X, and Fadi was wondering about the minimum possible value of max(a, b) such that LCM(a, b) equals X. Both a and b should be positive integers.

LCM(a, b) is the smallest positive integer that is divisible by both a and b. For example, LCM(6, 8) = 24, LCM(4, 12) = 12, LCM(2, 3) = 6.

Of course, Fadi immediately knew the answer. Can you be just like Fadi and find any such pair?

Input

The first and only line contains an integer X (1 ≤ X ≤ 10^{12}).

Output

Print two positive integers, a and b, such that the value of max(a, b) is minimum possible and LCM(a, b) equals X. If there are several possible such pairs, you can print any.

Examples

Input


2


Output


1 2


Input


6


Output


2 3


Input


4


Output


1 4


Input


1


Output


1 1

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
using vi = vector<int>;
const ll INF = 100000000000ll;
const int N = 200005;
const int prime = 31;
const ll mod = 1000000007;
const ld eps = 1e-5;
mt19937_64 strong_random(
    chrono::system_clock::now().time_since_epoch().count());
ll n;
void input() { scanf("%lld", &n); }
void solve() {
  vector<ll> divisors;
  ll nval = n;
  ll dv = 2;
  while (dv * dv <= n) {
    if (n % dv == 0) {
      int cc = 0;
      divisors.push_back(1);
      while (n % dv == 0) {
        n /= dv;
        divisors.back() *= dv;
      }
    } else {
      dv++;
    }
  }
  if (n != 1) {
    divisors.push_back(n);
  }
  int bitcnt = (int)(divisors).size();
  pll ans = {nval, 1};
  for (int i = 0; i < (1 << bitcnt); i++) {
    ll a = 1, b = 1;
    for (int j = 0; j < bitcnt; j++) {
      if ((1 << j) & i) {
        a *= divisors[j];
      } else {
        b *= divisors[j];
      }
    }
    if (a < b) swap(a, b);
    ans = min(ans, {a, b});
  }
  cout << ans.second << " " << ans.first << endl;
}
void precalc() {}
int main() {
  precalc();
  int testcases = 1;
  for (int testId = 1; testId <= testcases; testId++) {
    input();
    solve();
  }
  return 0;
}