#include int main(void){ int C; scanf("%d", &C); int a; int b = 0; for (int i = 2; i <= C; i++){ a = C / i; if (C%i == 0){ b = i; break; } } printf("%d %d\n", b,a); return 0; }