#include void solve() { int n; std::cin >> n; for (int a = 1; a <= 10; ++a) { for (int b = 1; b <= 10; ++b) { if (a + b != n) continue; std::cout << a << " " << b << std::endl; return; } } } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); solve(); return 0; }