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