#include #include #include #include #include using namespace std; int main() { int n; cin >> n; if (n <= 10) { random_device rand; mt19937 mt(rand()); uniform_int_distribution<> dist(1,n-1); int ans = dist(mt); int ans2 = n - ans; cout << ans << ' ' << ans2 << endl; } else if (n>=10) { int keta1 = n - 10; random_device rand; mt19937 mt(rand()); uniform_int_distribution<> dist(keta1, 10); int ans = dist(mt); int ans2 = n - ans; cout << ans << ' ' << ans2 << endl; } return 0; }