#include using namespace std; int main(){ long long m; cin >> m; long long x, y; bool f = false; for(long long i = 2; i < m; i++){ for(long long j = 2; j < m; j++){ if(i * j == m){ cout << i << " " << j << endl; f = true; break; } } if(f == true)break; } if(f == false){ cout << 1 << " " << m << endl; } }