#include<stdio.h>
int a,b;
int main(){
while(scanf("%d%d",&a,&b)){
if(!a&&!b) break;
printf("%d\n",a+b);
}
}
#include<stdio.h>
int a,b;
int main(){
while(scanf("%d%d",&a,&b)){
if(!a&&!b) break;
printf("%d\n",a+b);
}
}