#include using namespace std; int f(int n) { for (int i = 1; i <= 10; i++) { for (int j = 1; j <= 10; j++) { if (i + j == n) { cout << i << " " << j << endl; return 0; } } } } int main() { int n; cin >> n; f(n); }