#include #define rep(i, ss, ee) for (int i = ss; i < ee; ++i) using namespace std; void solve() { int N; cin >> N; // cout << N / 2 << " " << N - N / 2 << endl; if (N <= 10) { cout << "1 " << N - 1 << endl; } else { cout << "10 " << N - 10 << endl; } } int main() { cin.tie(0); ios::sync_with_stdio(false); solve(); getchar(); }