#include //#include int main() { int N; std::cin >> N; std::cout << N - 2 << " " << 2 << std::endl; return 0; }