#include using namespace std; using Graph = vector>; int main() { int N = 0; cin >> N; int a, b = 0; while(a + b != N){ if(a < 10){ a++; } else{ b++; } } cout << a << " " << b << endl; }