#include<stdio.h>intmain(){
int i,j;while(~scanf("%d %d",&i,&j))printf("%d\n",i+j);return0;}
1090
#include<stdio.h>intmain(){
int u;int a,b,sum;scanf ("%d",&u);while(u--){
scanf ("%d%d",&a,&b);sum=a+b;printf ("%d\n",sum);}return0;}
1091
#include<stdio.h>intmain(){
int i,j;while(~scanf("%d %d",&i,&j)&&(i!=0||j!=0))printf("%d\n",i+j);return0;}
1092
#include<stdio.h>intmain(){
int n, number, sum;while(scanf("%d",&n), n)//while里面是逗号表达式{
sum =0;while(n--){
scanf("%d",&number);sum += number;}printf("%d\n", sum);}return0;}
1093
#include<stdio.h>intmain(){
int n, number, sum, u ;scanf ("%d",&u);while(u--){
sum =0;scanf("%d",&n);while(n--){
scanf("%d",&number);sum += number;}printf("%d\n", sum);}return0;}
1094
#include<stdio.h>intmain(){
int n, a, sum, i;while(scanf("%d",&n)!=EOF){
sum =0;for(i =0; i < n; i ++){
scanf("%d",&a);sum = sum + a;}printf("%d\n", sum);}return0;}
1095
#include<stdio.h>intmain(){
int a,b;while((scanf("%d%d",&a,&b)!=EOF))printf("%d\n\n",a+b);return0;}
1096
#include<stdio.h>intmain(){
int n,N,a,sum;scanf("%d",&N);while(N--){
scanf("%d",&n);sum=0;while(n--){
scanf("%d",&a);sum+=a;}printf("%d\n",sum);if(N!=0)printf("\n");//陷阱}}