#include using namespace std; using ll = long long; void solve(){ int A, B; cin >> A >> B; int x = 10 - A; int y = B - x; cout << x << " " << y << "\n"; } int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); cout << setprecision(10) << fixed; int T; T = 1; //cin >> T; for(;T--;) solve(); }