#include int main() { int in; int a, b; std::cin >> in; a = (in > 10)? 10:1; b = in - a; std::cout << a << " " << b << std::endl; return 0; }