#include<stdio.h>
int main(){
int a, b, c, d;
scanf("%d%d", &a, &b);
printf("%d\n", a+b);
scanf("%d%d", &c, &d);
printf("%d\n", c+d);
return 0;
}