#include using namespace std; int N; int main(void){ cin >> N; for(int i = 1; i <= 10; ++i){ if(N - i <= 10){ cout << i << " " << N - i << endl; break; } } return 0; }