#include using namespace std; int main(){ int n,b; for(int a=1; a <= 10; a++){ b = n - a; if(n == a + b){ cout << a << " " << b << endl; break; } } }