#include int main(void){ long long int N; scanf("%lld", &N); printf("%lld %lld\n",(N-(N-2)), (N-2)); return 0; }