#include using namespace std; using int64 = long long; const int INF = 1 << 30; int main() { int N; cin >> N; cout << 1 << " " << N - 1 << endl; }