#include int main() { long long in; std::cin >> in; int i = 2; for(; (in % i) != 0; i++); std::cout << i << " " << (in / i) << std::endl; return 0; }