#include <cstdio>
#include <cctype>
using namespace std;
int uread(void);
int main(void){
int n,a,b;
n=uread();
while (n--){
a=uread(),b=uread();
printf("%d\n",a+b);
}
return 0;
}
int uread(void){
char ch=getchar();
int symbol=0;
int x=0;
while (!isdigit(ch))
(ch=='-')?(symbol=1):(0),ch=getchar();
while (isdigit(ch))
x=x*10+(ch^48),ch=getchar();
return (symbol)?(-x):(x);
}