#include #include int main() { long long int m, x, y, i; scanf("%lld", &m); if (m <= 3) { printf("%d %lld\n", 1, m); return 0; } for (i = 2; i < sqrt(m); i += 2) { if (m % i == 0) { x = i; y = m / x; break; } } printf("%lld %lld\n", x, y); return 0; }