#define _GLIBCXX_DEBUG #include using namespace std; int main() { int N; cin >> N; if(N <= 10) cout << 1 << " " << N-1 << endl; else cout << N-10 << " " << 10 << endl; }