#include <iostream>
#include <vector>
#include <algorithm>
#include <math.h>
using namespace std;
typedef long long int ll;

int main(){
	cin.tie(nullptr);
	ios::sync_with_stdio(false);
	int n; cin >> n;
	for(int i=1;i<11;i++){
		if(n-i<11){
			cout << i << " " << n-i << endl;
			return 0;
		}
	}
}