#include using namespace std; #define int long long void testcase() { int A, B; cin >> A >> B; int x, y; x = 10 - A; y = B - x; cout << x << " " << y << endl; } int32_t main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); testcase(); return 0; }