#include using namespace std; int main() { int n; cin >> n; int a = 1; if (n > 10) a = 10; cout << a <<" " << n - a << endl; return 0; }