program ans; var n,a,b,i: integer; begin readln(n); for i := 1 to n do begin readln(a, b); writeln(a+b); end; end.