#define _CRT_SECURE_NO_WARNINGS // #pragma warning(disable:4996) #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define rep(i,a,b) for(int i=(a);i<(b);i++) #define rrep(i,a,b) for(int i=(a);i>=(b);i--) #define pb push_back #define mp(a,b) make_pair(a,b) #define all(a) a.begin(),a.end() #define len(x) ((int)(x).size()) #define tmax(a,b,c) max((a),max((b),(c))) #define tmin(a,b,c) min((a),min((b),(c))) #define debug(x) cerr << #x << " is " << x << endl; typedef pair Pii; typedef map Mii; typedef vector Vi; typedef long long ll; const int inf = 2e9; const ll ll_inf = 1e17; const int mod = 1e9 + 7; const long double eps = 1e-10; ll a[101010]; int main() { ll n; cin >> n; rep(i,2,1002) { int j = i + i; while (j < 1002) { a[j]++; j += i; } } rep(i,2,1000001) { if (!a[i]) { if (n % i == 0) { cout << n/i << " " << i << endl; return 0; } } } cout << 1 << " " << n << endl; return 0; }