#include using namespace std; int main() { int N, t; cin >> N; t = rand() % N + 1; cout << t << " " << N - t << endl; }