#include #define rep(i, ss, ee) for (int i = ss; i < ee; ++i) using namespace std; void solve() { int N; cin >> N; rep(i, 1, 11) { rep(j, 1, 11) { if (i + j == N) { cout << i << " " << j << endl; return; } } } } int main() { cin.tie(0); ios::sync_with_stdio(false); solve(); getchar(); }