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