#include using namespace std; void solve() { int n, m; cin >> n >> m; cout << max(n, m) << endl; } int main() { int t; cin >> t; while(t--) solve(); }