#include using namespace std; typedef long long ll; typedef pair P; #define REP(i,n) for(ll i=0;i> A >> B; cout << 10-A << ' ' << B-10+A << endl; return 0; }