#include using namespace std; using ll = long long; #ifdef LOCAL #include #else #define dbg(...) 0 #define dbgn(...) 0 #endif void solve(){ int a, b; cin >> a >> b; int x = 10 - a; int y = b - x; cout << x << ' ' << y << '\n'; } int32_t main() { cin.tie(0)->sync_with_stdio(0); solve(); return 0; }