#include<bits/stdc++.h>

using namespace std;

using int64 = long long;
const int INF = 1 << 30;

int main() {
  int N;
  cin >> N;
  if(N > 10) cout << N / 2 << " " << (N + 1) / 2 << endl;
  else cout << 1 << " " << N - 1 << endl;

}