#include<iostream>
#include<fstream>
#include<cstdio>
using namespace std;
int main()
{
ifstream ifile("input.txt");
ofstream ofile("output.txt");
int a, b;
while(ifile>>a>>b)
// printf("%d\n", a+b);
ofile<<a+b<<endl;
return 0;
}
#include<fstream>
#include<cstdio>
using namespace std;
int main()
{
ifstream ifile("input.txt");
ofstream ofile("output.txt");
int a, b;
while(ifile>>a>>b)
// printf("%d\n", a+b);
ofile<<a+b<<endl;
return 0;
}